In this easy to follow guide , we are looking at how to upgrade the OS without a YUM server. It may not be practical to setup a yum server for few linux servers but you can still upgrade the OS using the following process.

You will need the DVD media for the OS you would like to upgrade. In this example, the server needs to be upgraded from RHEL 7.4 to RHEL 7.6 version skipping 7.5

Please follow this guide on how to set up the local yum repo in your server.

  1. Copy the ISO DVD to the local server and mount the DVD

2. Copy the media.repo file file the mounted DVD to /etc/yum.repos.d/

3.Update the /etc/yum.repos.d/RHEL76.repo file with following options

At the end the repo configuration file /etc/yum.repos.d/RHEL76.repo should look this

4. Rename the old RHEL7.4.repo file as RHEL74.disable, clean the yum cache and run yum repolist

Here is the output from my server

Now we are ready to upgrade the OS from RHEL 7.4 to 7.6. As a precaution, please make sure you take the necessary backup before the OS upgrade.

5. Run yum update, it will list all the packages will be upgraded as well as any new dependency packages part of the yum upgrade. Confirm “y” to continue with the OS upgrade.

6. Once complete , verify the OS version

7. Reboot the server to load the newly installed Kernel images

Hope you find this tutorial useful and don’t forgot to share your thoughts!