From Fedora Project Wiki

Revision as of 10:00, 16 April 2009 by Jhutar (talk | contribs)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Users should be able to create delta-rpms enabled repositories.


How to test

  1. Download createrepo + some old package, for example sos
    1. rpm -Uvh http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.7/4.fc11/noarch/createrepo-0.9.7-4.fc11.noarch.rpm
    2. rpm -Uvh http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm --oldpackage
    3. yum install httpd
  2. Create your own repo
    1. mkdir /var/www/html/myold /var/www/html/mynew
    2. cd /var/www/html/myold
    3. wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm
    4. cd /var/www/html/mynew
    5. wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/10.fc11/noarch/sos-1.8-10.fc11.noarch.rpm
    6. createrepo --database --deltas --oldpackagedirs=/var/www/html/myold/ /var/www/html/mynew/
  3. Start http server with service httpd start
  4. 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/Packages/
 enable=1
 gpgcheck=0
  1. Test if everything works
    1. yum clean metadata
    2. yum clean all
    3. 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.