|
|
# 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](http://unix.stackexchange.com/questions/257061/gentoo-linux-gpg-encrypts-properly-a-file-passed-through-parameter-but-throws-i/257065#257065) steps to get around the problem.
|
|
|
|
|
|
- while generating `conf/distributions` file *codename* should be the
|
|
|
one based on your debian version. *origin* should be `localhost`.
|
|
|
- Store the public key, that is generated in the process to a file.( `gpg --armor --export [email protected] --output [email protected]` 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`. |