Paul Herbosch
2009-Oct-21 08:55 UTC
[CentOS] local centos repository upgrade from 5.3 to 5.4
Hi list, I run quite a few centos 5.3 servers and have a local yum repository which is working fine. Below a list of what I'm rsyncing at the moment + an extract from my / etc/yum.repos.d/CentOS-Base.repo file I copied the OS directory from the install media and ran createrepo on that dir. I would like to upgrade my servers to 5.4. I was wondering if I could simply replace the '5.3' part in the rsync source to '5.4' ? Or is there more to it? Thank you in advance, Kind regards, Paul Herbosch === What I'm currently rsyncing ==rsync -avrt rsync://anorien.csc.warwick.ac.uk/CentOS/5.3/addons/i386 -- exclude=debug/ /var/www/html/centos/5/addons/ rsync -avrt rsync://anorien.csc.warwick.ac.uk/CentOS/5.3/centosplus/ i386 --exclude=debug/ /var/www/html/centos/5/centosplus/ rsync -avrt rsync://anorien.csc.warwick.ac.uk/CentOS/5.3/contrib/i386 --exclude=debug/ /var/www/html/centos/5/contrib/ rsync -avrt rsync://anorien.csc.warwick.ac.uk/CentOS/5.3/extras/i386 -- exclude=debug/ /var/www/html/centos/5/extras/ rsync -avrt rsync://anorien.csc.warwick.ac.uk/CentOS/5.3/updates/i386 --exclude=debug/ /var/www/html/centos/5/updates/ === Local /etc/yum.repos.d/CentOS-Base.repo file ==[base] name=CentOS-$releasever - Base # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://mylocalreposerver/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://mylocalreposerver/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 etc... -- Paul Herbosch Operations TBWA\ Worldwide IT Mobile: +32 477 36 81 92 www.mytbwa.com/Technology This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclaimer at tbwaworld.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.
Antonio da Silva Martins Junior
2009-Oct-21 11:48 UTC
[CentOS] local centos repository upgrade from 5.3 to 5.4
Hi :) ----- "Paul Herbosch" <paul.herbosch at tbwaworld.com> escreveu:> > I run quite a few centos 5.3 servers and have a local yum repository > which is working fine. > Below a list of what I'm rsyncing at the moment + an extract from my > /etc/yum.repos.d/CentOS-Base.repo file > I copied the OS directory from the install media and ran createrepo on > that dir. >Well, I had some CentOS 5.3 and 4.8 servers too. But, I mirror the directory structure and loop mount an ISO image on the "os" dir on it :)> I would like to upgrade my servers to 5.4. > I was wondering if I could simply replace the '5.3' part in the rsync > source to '5.4' ? > Or is there more to it?When a new version is released I link copy the "old" structure to a new one (cp -al 5.3 5.4), mount the new media under the "os" tree, and run rsync against a mirror of the new structure. I do this because sometimes there are packages in common betwen both versions and I didn't need to download it (or store it, as it is only a hard link) again. When I think the new version is ok to run in my production servers I simply move the upper link from one version to another, i.e. fom 5 -> 5.3 to 5 -> 5.4, the yum.conf files are set to get from the "5" repo and not from "5.x" Hope this helps Antonio. -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - Support Analist | "Only The Shadow Knows | | Universidade Estadual de Maring? - Brasil| what evil lurks in the | | NPD - N?cleo de Processamento de Dados | Heart of Men!" | | E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "Real Programmers don?t need comments ? the code is obvious." -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo.