25 February 2009 by Lars
Local repository maintenance (openSUSE/Ubuntu)
In Ubuntu:
cd /location/of/repo
sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
then configure
/etc/apt/sources.list.d/local.list:
deb file:/location/of/repo/ /
or
/etc/apt/sources.list.d/local.list:
deb http://myserver/location/of/repo/ /
In openSUSE:
cd /location/of/rpm/repo
createrepo .
and then
sudo zypper sa http://myserver/location/of/rpm/repo My_Local
In both cases, there are ways to crypto-sign the repositories, but probably optional if only accessible locally.
Leave a Reply
You must be logged in to post a comment.