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.

#apt#openSUSE#rpm#ubuntu

Leave a Reply

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