[HLUG] homemade ubuntu repository

j michaelson jmichaelson at gmail.com
Fri Jun 16 23:44:05 BST 2006


hi,

i've just built myself a ubuntu mini-repository from the files that
synaptic and apt-get had downloade so that i could use them on other
installations. here's what i did....

mkdir /home/john/software/binary

(made a binary folder to put the debs into)

cp -R /var/cache/apt/archive/* /home/john/software/binary

(copying all the files that apt-get and synaptic had downloaded into
my binary folder).

apt-get install reprepro dpkg-dev

(install the tools needed to build the repository)

cd /home/john/software

(change directory into the directory above the binary folder)

dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz

(build the Packages.gz file that the package managers need to operate)

cat "deb file:///home/a/software binary/" >> /etc/apt/sources.list

(added the folder to the list of sources.)

that's it, all those files are now accessable with apt-get or synaptic.

john.



More information about the Herefordshire mailing list