Local Debian Repository
Nov. 24th, 2009 03:49 pmThe below steps are to set up a local Debian repository which would be available through APT with the following lines in /etc/apt/sources.list:
2 Creating /var/www/debian/conf/distributions as follows:
5 Creating crontab file /etc/cron.d/reprepro to automatically process the incoming directory every minute:
deb http://localhost/debian codedot main #Codedot Repository deb-src http://localhost/debian codedot main #Codedot Repository1 Installing `apache2' and `reprepro' packages, and creating directories /var/www/debian/{incoming,conf,temp}. Then, setting mode 777 for /var/www/debian/incoming to upload new packages there using method `local'.
2 Creating /var/www/debian/conf/distributions as follows:
Origin: Anton Salikhmetov Label: Codedot Suite: unstable Codename: codedot Version: 3.1 Architectures: amd64 source Components: main Description: Codedot Repository SignWith: default Tracking: all includechanges keepsources DebIndices: Packages Release . .gz DscIndices: Sources Release . .gz3 Creating /var/www/debian/conf/incoming as follows:
Name: codedot IncomingDir: /var/www/debian/incoming TempDir: /var/www/debian/temp Allow: codedot unstable Default: codedot4 Putting the GPG keys (~/.gnupg directory) with empty passphrase into root's home directory to allow `reprepro' program to sign the Release files in the repository automatically.
5 Creating crontab file /etc/cron.d/reprepro to automatically process the incoming directory every minute:
* * * * * root /usr/bin/reprepro -b /var/www/debian processincoming codedot6 Editing the dput(1) configuration file /etc/dput.cf, section `local', as follows:
[local] method = local incoming = /var/www/debian/incoming run_dinstall = 0After the above steps have been done, new packages can be uploaded into to the local repository using the command `dput local *.changes'.