<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Be the signal &#187; cache</title>
	<atom:link href="http://bethesignal.org/blog/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethesignal.org</link>
	<description>where we&#039;re going, we don&#039;t need roads...</description>
	<lastBuildDate>Thu, 26 Jan 2012 05:52:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://bethesignal.org/?pushpress=hub'/>
		<item>
		<title>approx: Package caching for Ubuntu (and Debian) lovers</title>
		<link>http://bethesignal.org/blog/2009/04/13/approx-package-caching-ubuntu-debian-lovers/</link>
		<comments>http://bethesignal.org/blog/2009/04/13/approx-package-caching-ubuntu-debian-lovers/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 18:51:50 +0000</pubDate>
		<dc:creator>Jeff Waugh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[approx]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bethesignal.org/?p=1473</guid>
		<description><![CDATA[If you have quite a few Debian or Ubuntu machines and you want an easy way to share and speed up package downloads &#8212; or reduce your bandwidth consumption &#8212; then approx is for you! It&#8217;s incredibly easy to set &#8230; <a href="http://bethesignal.org/blog/2009/04/13/approx-package-caching-ubuntu-debian-lovers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have quite a few Debian or Ubuntu machines and you want an easy way to share and speed up package downloads &#8212; or reduce your bandwidth consumption &#8212; then <a title="approx git repo, its defacto homepage" href="http://git.debian.org/?p=pkg-ocaml-maint/packages/approx.git">approx</a> is for you! It&#8217;s incredibly easy to set up, but there are a few tricks I&#8217;ve learned which can make it especially good for Ubuntu lovers.</p>
<p>I suppose the obvious starting point would be&#8230;</p>
<pre>apt-get install approx</pre>
<p>&#8230; and that&#8217;s almost all there is to it, but let&#8217;s fancy it up a bit.</p>
<p>In /etc/approx/approx.conf:</p>
<pre># use my ISP's ubuntu mirror for most packages
# use central mirrors for security, partner and ports
ubuntu     http://mirror.internode.on.net/pub/ubuntu/ubuntu
secure     http://security.ubuntu.com/ubuntu
partner    http://archive.canonical.com/ubuntu
ports      http://ports.ubuntu.com/ubuntu-ports
medibuntu  http://packages.medibuntu.org

# you can cache PPA packages too, see the sources.list example below
ppa        http://ppa.launchpad.net

# ISP's debian mirror, particularly handy for getting sources
debian     http://mirror.internode.on.net/pub/debian</pre>
<p>Demonstrative examples from /etc/apt/sources.list:</p>
<pre># get most packages from my ISP
deb http://approx:9999/ubuntu jaunty main restricted universe

# get security packages from my ISP *or* central
deb http://approx:9999/ubuntu jaunty-security main restricted universe
deb http://approx:9999/secure jaunty-security main restricted universe

# partner and medibuntu packages for naughty stuff we need
deb http://approx:9999/partner jaunty partner
deb http://approx:9999/medibuntu jaunty free non-free

# use generic PPA repository to support arbitrary PPAs!
deb http://approx:9999/ppa/jdub/ppa/ubuntu jaunty main
deb http://approx:9999/ppa/gwibber-team/ubuntu intrepid main</pre>
<p>Now you can configure all of your Ubuntu (or Debian) machines to grab their package lists and packages from your approx cache. No more wasted bandwidth when you&#8217;re updating, and no more wasted time when you&#8217;re stuck <em>watching</em> an update &#8212; this is particularly awesome for autmated installs, of course! <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>Other handy tidbits:</p>
<ul>
<li>You can use the cache to share source packages too &#8212; just change &#8216;deb&#8217; to &#8216;deb-src&#8217; at the beginning of the line, as usual.</li>
<li>approx comes with daily and weekly cronjobs to keep your cache tidy.</li>
<li>If you have a bunch of packages lying around in /var/cache/apt/archives which could be put to good use in your approx cache, just use approx-import. Very sweet.</li>
</ul>
<p>Gosh I&#8217;m happy that someone has finally nailed this&#8230; I&#8217;m pretty sure I&#8217;ve tried every attempt to implement a dynamic apt proxy/cache that ever was. Interestingly, approx is yet another OCaml success story. Cool. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://bethesignal.org/blog/2009/04/13/approx-package-caching-ubuntu-debian-lovers/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

