1) use create repo to build your repository for some rpms.
mkdir -p /var/www/html/pub/roofmonkey/rpm/ose/master
tito build --rpm --test -o /var/www/html/pub/roofmonkey/rpm/ose/master
createrepo /var/www/html/pub/roofmonkey/rpm/ose/master
2) launch a webserver in the corresponding directory
cd /var/www/html/ ; python -m SimpleHTTPServer 8000
3) Create a yum repo file: You can ship this around to your other boxes. Or use yum repo add.
cat << EOF > /etc/yum.repos.d/test-ose.repo
[roofmonkey-ose-master]
name=roofmonkey-ose-master
baseurl=http://$IP:$PORT/pub/roofmonkey/rpm/ose/master
enabled=1
sslverify=0
gpgcheck=0
EOF
run yum info mypackage
You should see it reaching into your yum repos, on your webserver:
- - [11/Feb/2016 18:53:03] "GET /pub/roofmonkey/rpm/ose/master/repodata/repomd.xml HTTP/1.1" 200 - - - [11/Feb/2016 18:53:03] "GET /pub/roofmonkey/rpm/ose/master/repodata/ea06ef129beefc0d1c95a7807baa2caee44691e8669423e047a08233b3da9671-filelists.xml.gz HTTP/1.1" 200 - - - [11/Feb/2016 18:53:03] "GET /pub/roofmonkey/rpm/ose/master/repodata/73200093499e9f7fc848657d73c451ab2babd4b0315d9c8e46c072b417add809-primary.xml.gz HTTP/1.1" 200 -
No comments:
Post a Comment