Apt-cacher

From BitFolk
Revision as of 03:37, 29 May 2012 by Strugglers (talk | contribs) (Revamp of the apt-cacher docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The apt-cacher service is a specialised web proxy for Debian-style archive mirrors. Users of Debian- or Ubuntu-based VPSes can use BitFolk's apt-cacher service to avoid having to use their own bandwidth to download packages that other users have already downloaded.

Overview

To make use of BitFolk's apt-cacher service all you need to do is prepend a string to the mirror URIs you would normally use. The correct string to use depends on whether you use Debian or Ubuntu.


Warning Warning: Only the specific mirrors listed below are allowed. If you use other sites in your sources.list then please let BitFolk support know and they will consider whether to add them.


Debian

Available mirrors

  • ftp.uk.debian.org
  • ftp.debian.org
  • security.debian.org
  • archive.debian.org
  • backports.debian.org
  • jonas.genannt.name

apt-cacher URI

apt-cacher.lon.bitfolk.com/debian/

Example

For Debian squeeze:

deb http://apt-cacher.lon.bitfolk.com/debian/ftp.uk.debian.org/debian/     squeeze         main
deb-src http://apt-cacher.lon.bitfolk.com/debian/ftp.uk.debian.org/debian/ squeeze         main
deb http://apt-cacher.lon.bitfolk.com/debian/ftp.uk.debian.org/debian/     squeeze-updates main
deb http://apt-cacher.lon.bitfolk.com/debian/security.debian.org/          squeeze/updates main

Ubuntu

Available mirrors

  • gb.archive.ubuntu.com
  • archive.ubuntu.com
  • security.ubuntu.com

apt-cacher URI

apt-cacher.lon.bitfolk.com/ubuntu/

Example

For Ubuntu 12.04.x LTS (Precise Pangolin):

deb http://apt-cacher.lon.bitfolk.com/ubuntu/gb.archive.ubuntu.com/ubuntu/ precise          main restricted universe multiverse
deb http://apt-cacher.lon.bitfolk.com/ubuntu/gb.archive.ubuntu.com/ubuntu/ precise-updates  main restricted universe multiverse
deb http://apt-cacher.lon.bitfolk.com/ubuntu/security.ubuntu.com/ubuntu/   precise-security main restricted universe multiverse

Trivia

The apt-cacher service is actually provided using the apt-cacher-ng software.