Apt Repository
| Line 1: | Line 1: | ||
| − | We now have our own apt repository on hephaestus. We don't mirror the entire Debian repo; we just have our own packages. Cfengine places the appropriate line in sources.list on each machine. | + | We now have our own apt repository on hephaestus. We don't mirror the entire Debian repo; we just have our own packages. Cfengine places the appropriate line in sources.list on each machine. |
It has packages under distribution "lenny", section "main". The origin is set to UGCS for easy pinning (use a line like "Pin: release o=UGCS"). Use | It has packages under distribution "lenny", section "main". The origin is set to UGCS for easy pinning (use a line like "Pin: release o=UGCS"). Use | ||
deb http://hephaestus.ugcs.caltech.edu/debian lenny main | deb http://hephaestus.ugcs.caltech.edu/debian lenny main | ||
to use our packages on your system. | to use our packages on your system. | ||
| + | |||
| + | =Signatures= | ||
| + | The archive is signed with the key apt@ugcs.caltech.edu; you can get it from [http://wwwkeys.eu.pgp.net a keyserver]. Its key ID is 19BF57EC, and its fingerprint is 5387 F633 29C8 90F5 A185 F392 7DB8 8140 19BF 57EC | ||
| + | |||
=Adding Packages= | =Adding Packages= | ||
| − | We are using reprepro to maintain the repository. If you built a package correctly (with source and all), you can add it | + | We are using reprepro to maintain the repository. The repository directory is writable by the sysadmin group, so you don't need to use sudo to add a a package. If you built a package correctly (with source and all), you can add it with the following command (on hephaestus): |
reprepro -Vb /var/local/reprepro include lenny package_version.changes | reprepro -Vb /var/local/reprepro include lenny package_version.changes | ||
| Line 21: | Line 25: | ||
The base Release file contains md5's and sha1's of everything else, so it's the only thing you need to sign. Please don't forget to do it- otherwise aptitude will complain about installing packages from untrusted sources. | The base Release file contains md5's and sha1's of everything else, so it's the only thing you need to sign. Please don't forget to do it- otherwise aptitude will complain about installing packages from untrusted sources. | ||
| − | [[Category: | + | [[Category:Sysadmin_Documentation]] |
Revision as of 06:08, 18 May 2008
We now have our own apt repository on hephaestus. We don't mirror the entire Debian repo; we just have our own packages. Cfengine places the appropriate line in sources.list on each machine.
It has packages under distribution "lenny", section "main". The origin is set to UGCS for easy pinning (use a line like "Pin: release o=UGCS"). Use
deb http://hephaestus.ugcs.caltech.edu/debian lenny main
to use our packages on your system.
Signatures
The archive is signed with the key apt@ugcs.caltech.edu; you can get it from a keyserver. Its key ID is 19BF57EC, and its fingerprint is 5387 F633 29C8 90F5 A185 F392 7DB8 8140 19BF 57EC
Adding Packages
We are using reprepro to maintain the repository. The repository directory is writable by the sysadmin group, so you don't need to use sudo to add a a package. If you built a package correctly (with source and all), you can add it with the following command (on hephaestus):
reprepro -Vb /var/local/reprepro include lenny package_version.changes
Most packages should be built for both i386 and amd64. On one of the architectures, build with 'dpkg-buildpackge -B' to not include the architecture independent parts (reprepro will complain if you try to upload the same thing twice and it has a different checksum).
You can also include a .deb like:
reprepro -Vb /var/local/reprepro includedeb lenny package.deb
After adding a package, you should sign the release file.
cd /var/local/reprepro/dists/lenny GNUPGHOME=/var/local/repository/conf/gnupg gpg --armor --detach-sign Release mv Release.sig Release.gpg
The base Release file contains md5's and sha1's of everything else, so it's the only thing you need to sign. Please don't forget to do it- otherwise aptitude will complain about installing packages from untrusted sources.