apt-repository
abstract
The apt-repository is local debian repository containing self-made debian packages.
installation
call
aptitude install reprepro
installs the package.
Generate a user, e.g.,
reprepro. The home directory might be the directory of
the repository. Before you start generate a description file
./conf/distributions. See the manpage of reprepro.
Codename: lenny
Architectures: amd64
Components: contrib
Description: LSC software
Update: - debian
Origin: LSC
Codename: lenny-proposed
Architectures: amd64
Components: contrib
Description: LSC software
Update: - debian
reprepro export initializes the repository.
includeing a package
After you built a packe you might want to incoorporate it into your repository.
Use:
reprepro -b /path/to/repository -C contrib includedeb lenny /path/to/deb/package.deb
It a package a already present reprepro returns a error message. If you have a package with a higher version
number, the old package is being removed and the new one installed.
remove a package
A package can be removed using.
reprepro -b /path/to/repository -C contrib remove lenny packe_name
GPG Signing
To enable GPG signing, the
SignWith
-Option has to answered with either
yes or
default . For the repository, you have do create a GPG key and answer
no when asked for a passphrase, so that reprepro can automatically sign new packages. Also you want to export the public key and put it somewhere meaningful, e.g.
repository /pubkey.gpg.
On any client using that repository, you have to download the public key used to sign the repository and import it to your local key ring, and then pipe it to apt-key:
cat pubkey.gpg | apt-key add -
You might get the public key of a server from a keyserver
Just try follows
gpg --keyserver pgp.mit.edu --recv-keys 40976EAF437D05B5
gpg --armor --export 40976EAF437D05B5