# mkdir -p /data0/repo/CentOS/5.6/iso/x86_64 # ln -s /data0/repo /repo # cd /repo/CentOS # ln -s 5.6 5 # wget http://mirrors.gigenet.com/centos/RPM-GPG-KEY-CentOS-5 # cd /repo/CentOS/5.6/iso/x86_64 # cat /dev/dvd > CentOS-5.6-x86_64-bin-DVD-1of2.iso # wget http://mirror.nic.uoregon.edu/centos/5.6/isos/x86_64/sha1sum.txt # sha1sum -c sha1sum.txt # mount -o loop CentOS-5.6-x86_64-bin-DVD-1of2.iso /mnt # mkdir -p /repo/CentOS/5.6/os/x86_64 # rsync -avP /mnt/CentOS /mnt/repodata /repo/CentOS/5.6/os/ # mkdir -p /repo/CentOS/5.6/updates/x86_64 # rsync --exclude='debug' --exclude='*debug info*' --exclude='repoview' \ --exclude='headers' -irtCO --delete-excluded --delete \ rsync://rsync.gtlib.gatech.edu/centos/5.6/updates/x86_64 /repo/CentOS/5.6/updates/ # mkdir -p /repo/epel/5/x86_64 # cd /repo/epel # wget http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL # rsync --exclude='debug' --exclude='*debuginfo*' --exclude='repoview' --exclude='headers' \ -irtCO --delete-excluded --delete rsync://archive.linux.duke.edu/fedora-epel/5/x86_64 /repo/epel/5/ # mv /etc/yum.repos.d/* /usr/src/ # cat /dev/null >/etc/yum.repos.d/CentOS-Base.repo # cat /dev/null >/etc/yum.repos.d/CentOS-Media.repo