Home > DIY, networking, ubuntu > Ubuntu 6.10 Edgy Eft Local Repository using debmirror

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.

Advertisements
Categories: DIY, networking, ubuntu
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: