Ubuntu 6.10 Edgy Eft Local Repository using debmirror

I published a howto a while back for a local Dapper repository, and really Edgy is just a minor variation of that.

At 3:30 AM each night a cron job runs a script called repupdate.

Here is that script:

#!/bin/bash -x

/usr/bin/debmirror /var/www/ubuntu –nosource -m –passive –host=archive.ubuntulinux.org –root=ubuntu/ \
–method=ftp –progress –dist=edgy –ignore-release-gpg –section=main,multiverse,universe,restricted \
–arch=i386 /backups/ubuntu/

It updates the repository mirror for Edgy each morning. I now have the repository mirror on a web server in the ubuntu directory. To use the repository, you open /etc/apt/sources.list, and do a search and replace:

http://us.archive.ubuntu.com/ubuntu

with

http://(your web server IP)/ubuntu

You do need to set up Apache on the machine first, and modify the script to match your www data files location if it is  different from mine. After the initial download of several gigabytes, all updates and installations from the LAN are lightning quick.

Leave a Reply

You must be logged in to post a comment.