Tired of ads? Upgrade to paid account and never see ads again!
Daria Morgendorffer
Anton Salikhmetov codedot
Previous Entry Share Next Entry
Local Debian Repository
The 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:
deb http://localhost/debian codedot main #Codedot Repository
deb-src http://localhost/debian codedot main #Codedot Repository
1 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 . .gz
3 Creating /var/www/debian/conf/incoming as follows:
Name: codedot
IncomingDir: /var/www/debian/incoming
TempDir: /var/www/debian/temp
Allow: codedot unstable
Default: codedot
4 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 codedot
6 Editing the dput(1) configuration file /etc/dput.cf, section `local', as follows:
[local]
method                  = local
incoming                = /var/www/debian/incoming
run_dinstall            = 0
After the above steps have been done, new packages can be uploaded into to the local repository using the command `dput local *.changes'.
Tags: ,

You are viewing codedot