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 executed
dpkg-sig --sign builder mypackage_0.1.2_amd64.deb. Then follow the steps mentioned in this steps to get around the problem.
conf/distributionsfile codename should be the one based on your debian version. origin should be
Store the public key, that is generated in the process to a file.(
gpg --armor --export firstname.lastname@example.org --output email@example.com output the key. Just store that in a file).
Add that key to apt, with the command
sudo apt-key add <key-filename>
/etc/apt/sources.list, then add this line:
deb file:<folder-containing-conf-folder> stretch main.
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