Hi. At the moment it seems my machines just update to the latest current release . I install a 6.0 machine and run yum update , and next thing its 6.2 . I have a requirement where I need machines to only upgrade to even numbered sub releases eg: 6.0 , 6.2, 6.4 and only on my approval. But will allow updates within a given release. How can I achieve this ? If I sync the repositories for eg: 6.0 , 6.2, 6.4 separately in Spacewalk and only allow access to the ones I want to give access to, would that work ? Thanks G
On Thursday 10 May 2012 17.36.07 Gregory Machin wrote:> Hi. > At the moment it seems my machines just update to the latest current > release . I install a 6.0 machine and run yum update , and next thing > its 6.2 . > > I have a requirement where I need machines to only upgrade to even > numbered sub releases eg: 6.0 , 6.2, 6.4 and only on my approval. But > will allow updates within a given release.There is no provided functionality to do this, that is, CentOS doesn't differentiate between what you call updates and upgrades.> How can I achieve this ?Normally (default yum config) a machine fetches it's packages from URL.../6/.. You can change this 6 to 6.x. That will prevent you from getting updates belonging to 6.x+1 _but_ will have the negative side-effect of stopping to work when 6.x+1 is released (6.x removed from normal mirrors). Keeping you own repo (rsynced without --delete) may be the best idea (but requires more work). /Peter> If I sync the repositories for eg: 6.0 , 6.2, 6.4 separately in > Spacewalk and only allow access to the ones I want to give access to, > would that work ? > > Thanks-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20120510/6a82924c/attachment.sig>
On 05/09/12 10:36 PM, Gregory Machin wrote:> I have a requirement where I need machines to only upgrade to even > numbered sub releases eg: 6.0 , 6.2, 6.4 and only on my approval.thats a rather strange requirement. 6.1 is 6.0 with updates rolled up. a more sane requirement would be to only allow pre-tested updates, which you'd do by testing the updates on a staging machine, then posting them to your own internal yum repository which your production machines would update from. -- john r pierce N 37, W 122 santa cruz ca mid-left coast
On May 10, 2012, at 1:36, Gregory Machin wrote:> I have a requirement where I need machines to only upgrade to even > numbered sub releases eg: 6.0 , 6.2, 6.4 and only on my approval. But > will allow updates within a given release.Others have debated the usefulness of this requirement, so I won't address this here.> How can I achieve this ?You can easily achieve this by keeping a local mirror of the CentOS repository. I have a cron job every night that does something like this (I update the version manually whenever there is a new CentOS point release): rsync --archive --delete --partial --stats --verbose \ --exclude="alpha" --exclude="ia64" --exclude="ppc" --exclude="s390*" \ $CENTOSRSYNCREPO/6.2 /local/www/html/CentOS I also have a symlink from (in the current case) 6 to 6.2: ls -l /local/www/html/CentOS/ lrwxrwxrwx 1 root root 3 Dec 23 09:17 6 -> 6.2 drwxrwxr-x 10 342 342 4096 Dec 21 06:37 6.2 Finally, I modify the yum repo config files to point to my mirror (this is just a small snippet from /etc/yum.repos.d/CentOS-Base.repo): [base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://centosmirror.XXX.com/CentOS/$releasever/os/$basearch/ So all my servers and desktops update from my local mirror and I control when I move the symlink to point to the next release. You can achieve what you want in this way as well. Alfred
On 05/10/2012 12:36 AM, Gregory Machin wrote:> Hi. > At the moment it seems my machines just update to the latest current > release . I install a 6.0 machine and run yum update , and next thing > its 6.2 . > > I have a requirement where I need machines to only upgrade to even > numbered sub releases eg: 6.0 , 6.2, 6.4 and only on my approval. But > will allow updates within a given release. > > How can I achieve this ?It sounds like you would be happier with the Scientific Linux update paradigm. There by default you stay at a particular point release receiving only later security updates (along with any needed dependencies) until you manually run yum with "releasever=" specifying the point release to which you wish to upgrade. You can still get the RHEL/CentOS automatic upgrade paradigm by editing the .repo files and replacing "$releasever" with "6x" (that's a literal "x"), but that's not how it works by default. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.