Thursday, 28 January 2010

an rpm repo in the making (quick)

Ok.. since we build the rpms we want.. lets build the yum repo we will distribute them from.

on the server side:

mkdir -p /srv/www/htdocs/custom-rpms
cp /usr/src/packages/RPMS/x86_64/*.rpm /srv/www/htdocs/custom-rpms/
cd /srv/www/htdocs/custom-rpms/
createrepo -v .
gpg --gen-key
gpg --list-keys
gpg -a --detach-sign --default-key repodata/repomd.xml
gpg -a --export > repodata/repomd.xml.key
from the client side:
(SLES 10)
zypper --no-gpg-checks --non-interactive sa http://your-smt-server/custom-rpms/

(or the recommended way)
rug set-prefs security-level checksum
rug sa http://your-smt-server/custom-rpms/ Custom-RPMS

more will come... :)

No comments:

Post a Comment