This Procedure documents is standard method to update RHEL from a base OS version dot release (ex RHEL6) to a specific later dot release.
* Upload RHEL iso image on the server.
* Create file.repo file to the server in to /etc/yum.repos.d/
* Add below lines to the file.repo
[RHEL6.9-Server]
name= RHEL 6.9 Server Repository
baseurl=file:///cdrom
enabled=1
gpgcheck=0
Complete the “dot release” updates:
# mkdir -p /cdrom/iso
* Mount iso on the server
# mount -o loop <absolute path of iso image > /cdrom/iso
* Go to directory /cdrom/iso/Server in RHEL6 /cdrom/iso/Package in RHEL6
Install createrepo rpm.
# rpm -ivh <createrepo rpm name >
# cd /cdrom
# createrepo .
# yum clean all
# vi /etc/yum.conf
o If the line “tsflags=repackage” does not exist under the [main] section, then add it without the quotes to enable rollback capability within yum
# yum –disablerepo=rhn-* check-update
o This should result in updates from several “cdrom/iso” based repositories
o If the patch list looks accurate, then run:
# yum –disablerepo=rhn-* update
* Once patching completes:
# unmount /cdrom/iso
* check /etc/grub.conf for latest kernel entry (default should be 0 for the installed kernel)
# Reboot the target server
* When the target server is available, Log back in
* cat /etc/redhat-release and confirm that it references the correct dot release
* cd /etc/yum.repos.d
* yum clean all
