QA:Testcase YumPresto createrepo

From FedoraProject

Revision as of 09:41, 16 April 2009 by Psklenar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

prepare system

download createrepo + some old package , for ex 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

Create your own repo

  1. mkdir /tmp/myold /tmp/mynew
  2. cd /tmp/myold
  3. wget http://kojipkgs.fedoraproject.org/packages/sos/1.8/9.fc11/noarch/sos-1.8-9.fc11.noarch.rpm
  4. cd /tmp/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=/tmp/myold/ /tmp/mynew/

connect to your repo:

you have to use http server, it couldnt be file:///

  1. ln -s /tmp/mynew/ /var/www/html/Packages
  2. setenforce 0
  3. ^just for a while, test if it works
  4. service http restart

repofile

cat /etc/yum.repos.d/myrepo.repo
[myrepo]
name=myrepo
baseurl=http://localhost/Packages/
enable=1
gpgcheck=0

test

  1. yum clean metadata
  2. yum clean all
  3. yum update sos --enablerepo=myrepo