-- You'll need a lot of HDD space so create a separate 40GB partition
# install some requirements:
yum install createrepo
# create directories:
mkdir -p /var/www/html/yum/base/10/i386
mkdir -p /var/www/html/yum/updates/10/i386
# sync the fedora 10 mirror with the repo directories
# NOTES:
# -- more mirror sites
# -- prepend the rsync command with the next line to deal with a proxy server
# RSYNC_PROXY="server.domain.com:3128"
#
# The base RPMs
rsync -avrt rsync://mirrors.tummy.com/fedora/linux/releases/10/Everything/i386/os/Packages/ /var/www/html/yum/base/10/i386/
# The update RPMs
rsync -avrt rsync://mirrors.tummy.com/fedora/linux/updates/10/i386/ --exclude=debug/ /var/www/html/yum/updates/10/i386/
# Create local repo data
# This will create a repodata directory along side your RPMs
createrepo /var/www/html/yum/base/10/i386
createrepo /var/www/html/yum/updates/10/i386
# automate it by resyncing the updates directory via cron job
23 4 */2 * * /usr/bin/rsync -avrt ........(resync updates)
# update yum configuration
# edit /etc/yum.conf Append file with this:
#---------------------------------------------------
# added by frankg
# used 127.0.0.1 because we have a dynamic IP
# you should use your static IP of possible
[base-local]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://127.0.0.1/yum/base/$releasever/$basearch
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=0
[updates-local]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=http://127.0.0.1/yum/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=0
Reference Article
