Adding #CentOS 5.3 to Local #YUM Repository

On April 2, 2009, in Centos, by How2CentOS

centosCentOS 5.3 has just been released and that means it’s time to update our Local CentOS 5.x YUM repo.

Create the following additional Directories:

# mkdir -p /var/www/html/centos/5.3/os/i386
# mkdir -p /var/www/html/centos/5.3/updates/i386
# mkdir -p /var/www/html/centos/5.3/os/x86_64
# mkdir -p /var/www/html/centos/5.3/updates/x86_64

Add the CentOS 5.3 repo to the bash script which will rsync your local YUM Repo server with a CentOS 5.3 YUM mirror.

CentOS Mirror list – http://www.centos.org/modules/tinycontent/index.php?id=30

# vi yum-repo-update.sh

#!/bin/sh

rsync="rsync -avrt --bwlimit=256"

mirror=ftp.is.co.za::IS-Mirror/centos

verlist="5 5.2 5.3"
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

NB! Please read creating a Local CentOS YUM repository on CentOS 5.x before implementing.

Upgrading from CentOS 5.2 ( or CentOS 5.0 / 5.1 ):

If you are already running CentOS 5.3 or an older CentOS 5 distro, all you need to do is update your machine via yum by running :

# yum update

Related posts:

  1. Adding #CentOS 5.4 to local #YUM Repository
  2. Adding #CentOS 5.5 to a local #YUM Repository
  3. Creating A Local #Yum Repository on #CentOS 5.x
  4. Creating a Local #Fedora 11 #Yum Repository
  5. Creating a Local #Fedora 12 #Yum Repository

Tagged with:  

Leave a Reply

blog comments powered by Disqus
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Afrigator
Blog WebMastered by All in One Webmaster.