Debian Repository: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
There is a CSClub Debian repository on [[Machine_List#sodium_benzoate|sodium-benzoate]].
There is a CSClub Debian repository on [[Machine_List#sodium_benzoate|sodium-benzoate]].

=== Step 1: Add to Uploaders ===

The /srv/debian/conf/uploaders on mirror contains the list of people who can upload. Add your GPG key id to this file.

=== Step 2: Get the source code ===

To get the source code of a debian package you can use "apt-get source packagename". To get the source from random places the web the you can use "dget http://path/to/dsc/file.dsc".

=== Step 3: Build the package ===

Just type "debuild -k 04067B0B" in the debian directory. Replace the hex number with your key ID.

=== Step 4: Upload the package ===

Building will create a .changes file in the parent directory. If the file failed to properly sign (e.g. you typed your password wrong 3 times) you may need to run a command resembling "debsign -k 04067B0B foo.changes". Once signed, you can upload.


To add a newly built package type the following after building:
To add a newly built package type the following after building:


dupload packages.changes
dupload packages.changes

=== Step 5: Update the Repository ===

Log into mirror and type "sudo rrr-incoming". This is supposed to happen once every few minutes however it is always faster to run it manually.

=== Step 6: Install the package ===

Just install the package with apt-get as normal. Don't forget to run "apt-get update" first.

=== Configuring Machines ===


The /etc/apt/sources.list entry is:
The /etc/apt/sources.list entry is:
Line 9: Line 35:
deb http://debian.csclub.uwaterloo.ca/ [distribution] main
deb http://debian.csclub.uwaterloo.ca/ [distribution] main
deb-src http://debian.csclub.uwaterloo.ca/ [distribution] main
deb-src http://debian.csclub.uwaterloo.ca/ [distribution] main

The currently supported distributions are lenny and lucid.


[[Category:Software]]
[[Category:Software]]

Revision as of 19:16, 3 March 2011

There is a CSClub Debian repository on sodium-benzoate.

Step 1: Add to Uploaders

The /srv/debian/conf/uploaders on mirror contains the list of people who can upload. Add your GPG key id to this file.

Step 2: Get the source code

To get the source code of a debian package you can use "apt-get source packagename". To get the source from random places the web the you can use "dget http://path/to/dsc/file.dsc".

Step 3: Build the package

Just type "debuild -k 04067B0B" in the debian directory. Replace the hex number with your key ID.

Step 4: Upload the package

Building will create a .changes file in the parent directory. If the file failed to properly sign (e.g. you typed your password wrong 3 times) you may need to run a command resembling "debsign -k 04067B0B foo.changes". Once signed, you can upload.

To add a newly built package type the following after building:

dupload packages.changes

Step 5: Update the Repository

Log into mirror and type "sudo rrr-incoming". This is supposed to happen once every few minutes however it is always faster to run it manually.

Step 6: Install the package

Just install the package with apt-get as normal. Don't forget to run "apt-get update" first.

Configuring Machines

The /etc/apt/sources.list entry is:

deb http://debian.csclub.uwaterloo.ca/ [distribution] main
deb-src http://debian.csclub.uwaterloo.ca/ [distribution] main