Docsity

oracle linux minor upgrade, Study notes of Computer science

Toggle sidebar
bg1
Minor Update of Oracle Linux
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.10
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=1
enabled=1
[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=1
enabled=1
[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=1
enabled=1
[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=1
pf3

Partial preview of the text

Download oracle linux minor upgrade and more Study notes Computer science in PDF only on Docsity!

Minor Update of Oracle Linux

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

1. Clean Yum Cache:

sudo yum clean all sudo yum makecache

2. Upgrade the Kernel:

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

3. Perform the Update:

sudo yum update -y

4. Install utils and the grub-bootloader:

sudo yum install -y yum-utils sudo grub-install /dev/sda

5. Reboot the system:

sudo reboot

6. Remove all orphaned packages and kernels:

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=

7. Rebuild the Initramfs (Initial RAM Disk):

sudo dracut --force sudo mkinitrd --force /boot/initrd-$(uname -r).img $(uname -r)

8. Progress Bar Show Incorrect Oracle Linux Version During Boot

Process After Upgrade Plymouth command can be used to rebuild the initramfs file of running kernel:  List the available graphical themes: