From Fedora Project Wiki
Description
Users should be able to create delta-rpms enabled repositories.
How to test
- Download createrepo + some old package, for example 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 /var/www/html/myold /var/www/html/mynew
- cd /var/www/html/myold
- wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm
- cd /var/www/html/mynew
- wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/10.fc11/noarch/sos-1.8-10.fc11.noarch.rpm
- createrepo --database --deltas --oldpackagedirs=/var/www/html/myold/ /var/www/html/mynew/
- Start http server with service httpd start
- Connect to your repo (you have to use http server, it could not be file://) with this repofile in /ets/yum.repos.d/myrepo.repo
[myrepo] name=myrepo baseurl=http://localhost/mynew/ enabled=1 gpgcheck=0
- Test if everything works
- yum clean metadata
- yum clean all
- yum update sos --enablerepo=myrepo
Expected Results
All commands above should finish as expected. When you are running final yum, yum should download *.drpm instead of *.rpm file.