[SATLUG] making own Ubuntu repo

travis+ml-satlug at subspacefield.org travis+ml-satlug at subspacefield.org
Sun Oct 24 17:56:23 CDT 2010

Hey all,

I run a little Ubuntu repo for my home network and am thinking of sharing
some of those packages with the public.

I'm wondering what the current best practice is for this.

I currently use this script, but it sucks:

umask 022

releases="hardy intrepid jaunty karmic lucid"
binary="i386 amd64 all"

for r in $releases; do mkdir -p dists/"$r"/universe/source; for b in $binary; do mkdir -p dists/"$r"/universe/binary-"$b"; done; done

apt-ftparchive generate apt-ftparchive.conf

for r in $releases
    apt-ftparchive -c apt-release-"$r".conf release dists/"$r" > dists/"$r"/Release
    gpg --detach-sign --armor --yes --local-user $GPG_KEY_ID \
        --output dists/"$r"/Release.gpg dists/"$r"/Release

chmod -R a+rX .

exit 0

Good code works on most inputs; correct code works on all inputs.
My emails do not have attachments; it's a digital signature that your mail
program doesn't understand. | http://www.subspacefield.org/~travis/ 
If you are a spammer, please email john at subspacefield.org to get blacklisted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://www.satlug.org/pipermail/satlug/attachments/20101024/bd57d352/attachment.bin

More information about the SATLUG mailing list