str[bits]

April 11, 2005

Building a Local Debian Repository

Filed under: Debian

You want to build a local package repository for your LAN to share?

A local repository is useful if you have many users sharing a low-bandwidth Internet connection; your Debian systems can grab packages from the local repository, rather than going out over the network.

How?

Use apt-proxy:
# apt-get install apt-proxy
apt-proxy starts up automatically after installation.

Next, edit the add_backend/debian/ section of /etc/apt-proxy/apt-proxy.conf so that it points to geographically close package mirrors. (See http://www.debian.org/mirror/list for a list of package mirrors.)

Now edit /etc/apt/sources.list on the client machines to point to the apt-proxy server. The default port is 9999:
deb http://ip-or-hostname:9999

Run apt-get update on the client machines, and you’re in business. Every time a client machine on your LAN installs a new program, it will be cached on the apt-proxy server. Subsequent requests for the same package will be served by the local cache. Very cool!

2 Comments »

The URI to TrackBack this entry is: http://str.blogsome.com/2005/04/11/building-a-local-debian-repository/trackback/

  1. […] eds, of megabytes. See for yourself in /var/cache/apt/archives. To conserve storage space, set up a local package cache for your network.

    […]

    Pingback by Sandro T. Rafael Documentation Project :: Maintaining the Debian Package Cache :: April :: 2005 — April 11, 2005 @ 4:00 pm

  2. testcomment319

    Comment by testanchor91 — October 16, 2005 @ 2:54 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>























Get free blog up and running in minutes with Blogsome | Theme designs available here