1752600 Members
4822 Online
108788 Solutions
New Discussion

Centos Question

 
Ragni Singh
Super Advisor

Centos Question

Hi All,

 

How do I  do a yum update in centos 5.6 without updating the OS to centos 5.7 in the process?...I tried yum update and yum upgrade and they seem to do the same thing. 

2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: Centos Question


@Ragni Singh wrote:

How do I  do a yum update in centos 5.6 without updating the OS to centos 5.7 in the process?


Hi:

 

I don't think you can the way you invoke 'yum update'.  The Red Hat release notes state that "Red Hat Enterprise Linux minor releases are an aggregation of individual enhancement, security and bug fix errata."

 

I believe that the same is true for Centos distributions.  See here:

 

http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.7

 

Regards!

 

...JRF...

Matti_Kurkela
Honored Contributor

Re: Centos Question

I agree with JRF: if you avoid upgrades from 5.6 to 5.7, your system will no longer be up to date.

 

However, if there is some specific package in 5.7 that causes you problems, you might use the "versionlock" plugin for yum. Newer versions of yum already have it built-in: if RHEL/CentOS 5.6 yum does not include it by default, try installing it with "yum install yum-versionlock".  After that, you can use "yum versionlock <package-name>" to hold specific packages at their current versions.

MK