Local repository maintenance (openSUSE/Ubuntu)

In Ubuntu:

cd /location/of/repo
sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

then configure

deb file:/location/of/repo/ /


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

This site uses Akismet to reduce spam. Learn how your comment data is processed.