![]()
NB! Please read creating a Local CentOS YUM repository on CentOS 5.x before implementing.
Adding CentOS 5.6 to the YUM repository script
Create the following additional directories for CentOS 5.6:
# mkdir -pv /var/www/html/centos/5.6/{os,updates}/{i386,x86_64}
Add the CentOS 5.6 repository to the bash script which will rsync your local YUM repository server with a CentOS 5.6 YUM mirror.
CentOS Mirror list – http://www.centos.org/modules/tinycontent/index.php?id=30
# vi yum-repo-update.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/sh # This script will create a local CentOS mirror via Rsync # Note: This script will download CentOS 5.6 # rsync="rsync -avrt --bwlimit=256" mirror=ftp.is.co.za::IS-Mirror/centos verlist="5.6" archlist="i386 x86_64" baselist="os updates" local=/var/www/html/centos/ for ver in $verlist do for arch in $archlist do for base in $baselist do remote=$mirror/$ver/$base/$arch/ $rsync $remote $local/$ver/$base/$arch/ done done done |
Upgrading from CentOS 5.5
If you are already running CentOS 5.5 or an older CentOS 5 distro, all you need to do is update your machine via yum by running :
# yum update
