Creating a local (signed) debian repository.
-
The main steps are from: [Creating your own Signed APT Repository and Debian Packages] (https://scotbofh.wordpress.com/2011/04/26/creating-your-own-signed-apt-repository-and-debian-packages/)
-
NOTE: You might get an error like this:
gpg: signing failed: Inappropriate ioctl for device
, when executeddpkg-sig --sign builder mypackage_0.1.2_amd64.deb
. Then follow the steps mentioned in this steps to get around the problem. -
while generating
conf/distributions
file codename should be the one based on your debian version. origin should belocalhost
. -
Store the public key, that is generated in the process to a file.(
gpg --armor --export jon@aframe.com --output jon@aframe.com.gpg.key
will output the key. Just store that in a file). -
Add that key to apt, with the command
sudo apt-key add <key-filename>
-
Go to
/etc/apt/sources.list
, then add this line:deb file:<folder-containing-conf-folder> stretch main
. -
Run
sudo apt update
.
Example conf/distributions file
conf/distributions
------------------
Origin:localhost
Label: apt repository
Codename: stretch
Architectures: amd64 source
Components: main
Description: Aframe debian package repo
SignWith: yes
Pull: stretch
Example modification for /etc/apt/sources.list
deb file:/home/vagrant/gnusocial stretch main