Creating a local Ubuntu Mirror of "packages" on a different distro

Brian Puccio brian at brianpuccio.net
Wed May 11 04:47:18 UTC 2005


On Wed, 2005-05-11 at 10:56 +0800, Senectus . wrote:
> I have a small home network with a clarkconnect gateway that I'd like
> to turn into a Ubuntu "Packages" mirror repository.
> Is this a viable option?
> I've been searching the forum and wiki and I can't find much in the
> way of instructions on creating your own mirror repository..
> Could someone point me in the right direction?

The relevant ubuntu page is:

http://www.ubuntulinux.org/download/mirror/

As dingyi mentioned in another reply, you want to use rsync to keep your
mirror up to date with the main repository.  However, if you just use
plain rsync, you will sync the entire repository, source, binary, all
releases and all hardware architectures.  This may not even be possible
as you might not have enough disk space to mirrror the entire
repository.  If you only want the binary packages for 386 hardware, for
instance, you might want to look in to using something called debmirror
(in either universe or main, I forget which, or it can be installed from
source, it is basically a perl script that uses rsync to sync portions
of a package repository).  Call debmirror via a cron job (or rsync if
you do wish to mirror the entire thing) every 6 hours, as per the page,
and you should be all set.  An example debmirror command is:

debmirror /home/path/to/ubuntu-repository/ -a i386 -h archive.ubuntu.com -e rsync -d warty,warty-updates,warty-security,hoary,hoary-updates,hoary-security,breezy,breezy-updates,breezy-security --nosource -v -s main,restricted,universe,multiverse -r :ubuntu

This will mirror 386 packages, with no source, and grab all of warty,
hoary and the up and coming breezy.  For more information read "man
debmirror" and come back here if you need any help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050511/56fed090/attachment.sig>


More information about the ubuntu-users mailing list