Update CentOS packages using yum update command without upgrading to minor release


In our previous article Upgrade CentOS to latest version using yum update command we discussed how to Upgrade centos using yum update command where we found CentOS version upgraded to latest version.
Sometimes our requirement is to upgrade packages only without upgrading the CentOS release version.
In this article we discuss how to update CentOS packages using yum update command without upgrading to minor release.
Update CentOS packages using yum update command without upgrading to minor release: 6 Easy Steps
Step 1: Check current version
# cat /etc/redhat-release

Step 2: Backup for the OS
Take a healthy backup for operating system to avoid operating system update level failure latter.

Step 3: Restrict yum repository to minor release
# vi /etc/yum.conf

Add below parameter at bottom of the file and save.
exclude=redhat-release*
Step 4: Cleanup yum repository
# yum clean all

Step 5: Update yum repository to get latest packages
# yum makecache fast

Step 6: Check available updated packages for a specific package
# yum list <Package-Name>

It will list for updated packages available for your CentOS. Run below command to Update centos using yum update command.
 # yum update
Still if you are unable to find latest packaged then find configure latest yum repository on CentOS.
Reboot the server

# reboot

Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS