Zuerst einen GPG Key für das Repo erzeugen oder deinen offiziellen…
apt-get install reprepro
Folgende Ordner erstellen:
mkdir -p <serverpfad>/apt mkdir -p <serverpfad>/apt/conf mkdir -p <serverpfad>/apt/incoming
<Directory <serverpfad>/ > # We want the user to be able to browse the directory manually Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all </Directory> # This syntax supports several repositories, e.g. one for Debian, one for Ubuntu. # Replace * with debian, if you intend to support one distribution only. <Directory "<serverpfad>/apt/*/db/"> Order deny,allow Deny from all </Directory> <Directory "<serverpfad>/apt/*/conf/"> Order deny,allow Deny from all </Directory> <Directory "<serverpfad>/apt/*/incoming/"> Order allow,deny Deny from all </Directory>
Folgende Datei erstellen: /conf/distributions
Origin: Your Name Label: Your own label Suite: stable Codename: sarge Version: 3.1 Architectures: i386 all source Components: main non-free contrib Description: Your description SignWith: <key-id> # Wenn mehrere Architekturen unterstützt werden sollen Origin: Your Name Label: Your own label Suite: unstable Codename: sid Architectures: i386 all source Components: main non-free contrib Description: Your description SignWith: <key-id>
Folgende Datei erstellen: conf/options
verbose basedir /var/www/repos/apt/debian ask-passphrase
reprepro includedeb <osrelease> <debfile>
Entweder aus dem <serverpfad> heraus ausführen oder mit
reprepro -b <serverpfad> includedeb <osrelease> <debfile>
oder die REPREPRO_BASE_DIR
home Variable setzen