From Fedora Project Wiki
prepare system
download createrepo + some old package , for ex sos
- rpm -Uvh http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.7/4.fc11/noarch/createrepo-0.9.7-4.fc11.noarch.rpm
- rpm -Uvh http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm --oldpackage
- yum install httpd
Create your own repo
- mkdir /tmp/myold /tmp/mynew
- cd /tmp/myold
- wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm
- cd /tmp/mynew
- wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/10.fc11/noarch/sos-1.8-10.fc11.noarch.rpm
- createrepo --database --deltas --oldpackagedirs=/tmp/myold/ /tmp/mynew/
connect to your repo:
you have to use http server, it couldnt be file:///
- ln -s /tmp/mynew/ /var/www/html/Packages
- setenforce 0
- ^just for a while, test if it works
- service http restart
repofile
cat /etc/yum.repos.d/myrepo.repo [myrepo] name=myrepo baseurl=http://localhost/Packages/ enable=1 gpgcheck=0
test
- yum clean metadata
- yum clean all
- yum update sos --enablerepo=myrepo