

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


1. Prepare for the Minor Update Before performing any updates, make sure your system is clean and updated. 1. Clean Yum Cache: sudo yum clean all 2. Update the System: This ensures that your system has the latest patches and security updates before starting the update process. sudo yum update -y 3. Reboot if Necessary: Some updates may require a reboot to apply kernel updates. sudo reboot 2. Prepare the Oracle Linux Repository to which you want to upgrade For a minor update within the same version (e.g., OL6.x to OL6.10), make sure that the repositories are properly configured. 1. Create Repository for OL 6.10: If you have Oracle Linux 6.10 ISO, mount it and create a repository configuration for it. sudo mount -t iso9660 -o loop /media/OracleLinux_6.10.iso /mnt/ol6. Create a .repo file for OL 6.10: sudo vi /etc/yum.repos.d/ol6_10.repo Example: (For live repo) [public_ol6_latest] name=Oracle Linux 6 Latest ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck= enabled= [public_ol6_addons] name=Oracle Linux 6 Add ons ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck= enabled= [public_ol6_uek_r4] name=Oracle Linux 6 UEK R4 ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEKR4/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck= enabled= [public_ol6_10_base] name=Oracle Linux 6.10 Base ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/10/base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=
enabled=
3. Perform Upgrade
sudo yum clean all sudo yum makecache
Oracle Linux 6.10 uses UEK4 (Unbreakable Enterprise Kernel 4). It is highly recommended to switch to this kernel version during the upgrade. You can install the new kernel using: sudo yum install -y kernel-uek sudo yum update -y kernel
sudo yum update -y
sudo yum install -y yum-utils sudo grub-install /dev/sda
sudo reboot
package-cleanup --orphans | awk ' { print "yum remove -y " $0 >> "remove-orphans.sh" split($0, parts, "-[0-9]") print "yum install -y " parts[1] >> "install-orphans.sh" } ' &&
chmod +x remove-orphans.sh install-orphans.sh &&
bash remove-orphans.sh &&
bash install-orphans.sh package-cleanup --oldkernels --count=
sudo dracut --force sudo mkinitrd --force /boot/initrd-$(uname -r).img $(uname -r)
Process After Upgrade Plymouth command can be used to rebuild the initramfs file of running kernel: List the available graphical themes: