How to create a local Ubuntu Repository

Created by: Simos Xenitellis

Breezy Local Repository Cheatsheet

You need to obtain the .deb files for the repository you want to make.

For example,


wget http://www.mirror.ac.uk/mirror/archive.ubuntu.com/ubuntu/dists/breezy-security/main/binary-i386/Packages.gz

wget http://www.mirror.ac.uk/mirror/archive.ubuntu.com/ubuntu/dists/breezy-updates/main/binary-i386/Packages.gz

$ gunzip -c Packages.gz | grep '^Filename' Packages | awk '{printf "wget http://www.mirror.ac.uk/mirror/archive.ubuntu.com/ubuntu/%s\n", $2}' | sh

Alternatively, you can use an Ubuntu DVD to extract the deb files.

Finally, to create that index file, run (in the same folder with the
.deb files) the command:
$ dpkg-scanpackages ./ /dev/null | gzip > Packages.gz
and add the Packages.gz file as well, to the CDROM. All in the root folder.

The end-user should be able to install the security updates from the
graphical interface.