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&rep... 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&rep... 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@tbwaworld.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.
Hi :) ----- "Paul Herbosch" paul.herbosch@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@uem.br / shadow@uem.br | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "Real Programmers don’t need comments — the code is obvious."
On 21 Oct 2009, at 13:48, Antonio da Silva Martins Junior wrote:
Hi :)
Hi Antonio.
----- "Paul Herbosch" paul.herbosch@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 :)
thx for the tip.
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"
ok, so you decide when you want to upgrade your prod servers. you make sure you have a local copy of 5.4 available somewhere and change the symlink so yum has access to the rpms.
another question: do 5.4 rpms at some point end up in the 5.3 update repo? (if this is the case I don't have to do anything but wait for them to show up) or do I always have to rsync 5.4 over and arrange my files so that yum finds them in the "5" directory (and not "5.4")
Hope this helps
Antonio.
thx, paul -- 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@tbwaworld.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.
On 10/21/2009 02:36 PM, Paul Herbosch wrote: ...
another question: do 5.4 rpms at some point end up in the 5.3 update repo? (if this is the case I don't have to do anything but wait for them to show up) or do I always have to rsync 5.4 over and arrange my files so that yum finds them in the "5" directory (and not "5.4")
Can't you rsync the centos/5.4 and the centos/5 folders?
Then everything will work when 5.4 is announced: The symlinks in the centos/5 folder will change to point at the 5.4 folders and you don't have to do anything.
Mogens
On 21 Oct 2009, at 14:52, Mogens Kjaer wrote:
On 10/21/2009 02:36 PM, Paul Herbosch wrote: ...
another question: do 5.4 rpms at some point end up in the 5.3 update repo? (if this is the case I don't have to do anything but wait for them to show up) or do I always have to rsync 5.4 over and arrange my files so that yum finds them in the "5" directory (and not "5.4")
Can't you rsync the centos/5.4 and the centos/5 folders?
Then everything will work when 5.4 is announced: The symlinks in the centos/5 folder will change to point at the 5.4 folders and you don't have to do anything.
Thx a lot. I didn't realize that the centos/5 directory is a symlink. this definitely answers my question.
Mogens
thx again. gr, paul -- 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@tbwaworld.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation.