Howto create your own local APT archive

server side

Install the software

aptitude install reprepro

Create your repository

mkdir -p /srv/debian-myrepos/conf
cd /srv/debian-myrepos/conf
 
cat > distributions <<EOM
Origin: my own repos
Label: my own repos
Codename: lenny
Suite: stable
Architectures: i386 amd64
Components: main
Description: my own APT Repository
SignWith: yes
EOM
 
cat > options <<EOM
verbose
ask-passphrase
basedir .
EOM

Create your gpg key to sign the Release file

gpg --gen-key

Export pub key

gpg --export -a 76CE518A > myown.pubkey

Add .deb files to your repos

cd /srv/debian-myreos
reprepro includedeb lenny /path/to/package_xyz.deb

And, as a last step: configure Apache to serve your repos files …

client side

Add the new repos to /etc/apt/sources

echo "deb http://debmirror.example.com/debian-myrepos/ lenny main" >> /etc/apt/sources

Import public key

wget http://debmirror.example.com/myown.pubkey
apt-key add myown.pubkey

And ready to use :-)

debian/local_apt_archive.txt · Last modified: 2010-03 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready