From Fedora Project Wiki
(Created page with '== 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....') |
(fix repo file) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= | {{QA/Test_Case | ||
|description=Users should be able to create delta-rpms enabled repositories. | |||
|actions= | |||
# rpm -Uvh http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.7/4.fc11/noarch/createrepo-0.9.7-4.fc11.noarch.rpm | # Download createrepo + some old package, for example sos | ||
# rpm -Uvh http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm --oldpackage | ## rpm -Uvh http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.7/4.fc11/noarch/createrepo-0.9.7-4.fc11.noarch.rpm | ||
# yum install httpd | ## 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 | |||
# mkdir / | ## wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm | ||
# cd / | ## cd /var/www/html/mynew | ||
# wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm | ## wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/10.fc11/noarch/sos-1.8-10.fc11.noarch.rpm | ||
# cd / | ## createrepo --database --deltas --oldpackagedirs=/var/www/html/myold/ /var/www/html/mynew/ | ||
# wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/10.fc11/noarch/sos-1.8-10.fc11.noarch.rpm | # Start http server with service httpd start | ||
# createrepo --database --deltas --oldpackagedirs=/ | # 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 | ||
you have to use http server, it | |||
[myrepo] | [myrepo] | ||
name=myrepo | name=myrepo | ||
baseurl=http://localhost/ | baseurl=http://localhost/mynew/ | ||
enabled=1 | |||
gpgcheck=0 | gpgcheck=0 | ||
# Test if everything works | |||
## yum clean metadata | |||
# yum clean metadata | ## yum clean all | ||
# yum clean all | ## yum update sos --enablerepo=myrepo | ||
# yum update sos --enablerepo=myrepo | |results=All commands above should finish as expected. When you are running final yum, yum should download ''*.drpm'' instead of ''*.rpm'' file. | ||
}} | |||
[[Category:YumPresto_Test_Cases]] |
Latest revision as of 10:02, 16 April 2009
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.