<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Keeping apt archives empty&#8230;or not.</title>
	<atom:link href="http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/feed/" rel="self" type="application/rss+xml" />
	<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/</link>
	<description>Tech Notes And Miscellaneous Thoughts</description>
	<lastBuildDate>Sat, 07 Mar 2009 08:48:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jack</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-15</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Wed, 30 Apr 2008 11:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-15</guid>
		<description>It may not  be guaranteed to run. We can&#039;t know if installation is done n minutes after the first package installed</description>
		<content:encoded><![CDATA[<p>It may not  be guaranteed to run. We can&#8217;t know if installation is done n minutes after the first package installed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-13</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Wed, 30 Apr 2008 11:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-13</guid>
		<description>yeah, of course.  it can&#039;t run &#039;apt-get clean&#039; because apt is still running and has a lock on the archives.


you could also try something like:

DPkg::Post-Invoke { “echo apt-get clean &#124; at now + 5 minutes”; };


no idea if it works.  just the first thing that came into my head.</description>
		<content:encoded><![CDATA[<p>yeah, of course.  it can&#8217;t run &#8216;apt-get clean&#8217; because apt is still running and has a lock on the archives.</p>
<p>you could also try something like:</p>
<p>DPkg::Post-Invoke { “echo apt-get clean | at now + 5 minutes”; };</p>
<p>no idea if it works.  just the first thing that came into my head.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-12</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Wed, 30 Apr 2008 10:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-12</guid>
		<description>Unfortunately DPkg::Post-Invoke { “apt-get clean”; }; gives this error:
E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporari ly unavailable)
E: Unable to lock the download directory
E: Problem executing scripts DPkg::Post-Invoke &#039;apt-get clean&#039;
E: Sub-process returned an error code

But DPkg::Post-Invoke { &quot;/bin/rm  var/cache/apt/archives/*.deb&quot;; };
does the job well.

Thanks</description>
		<content:encoded><![CDATA[<p>Unfortunately DPkg::Post-Invoke { “apt-get clean”; }; gives this error:<br />
E: Could not get lock /var/cache/apt/archives/lock &#8211; open (11 Resource temporari ly unavailable)<br />
E: Unable to lock the download directory<br />
E: Problem executing scripts DPkg::Post-Invoke &#8216;apt-get clean&#8217;<br />
E: Sub-process returned an error code</p>
<p>But DPkg::Post-Invoke { &#8220;/bin/rm  var/cache/apt/archives/*.deb&#8221;; };<br />
does the job well.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-5</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Tue, 29 Apr 2008 12:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-5</guid>
		<description>So use the DPkg::Post-Invoke method that Andrew P blogged about.  It&#039;s a good solution for some circumstances, including yours.

The price is that because it always cleans the /v/c/a/archives, it will occasionally delete something before you want it deleted so you&#039;ll have to download it again.  no big deal if it&#039;s cached in a local apt-cacher proxy.</description>
		<content:encoded><![CDATA[<p>So use the DPkg::Post-Invoke method that Andrew P blogged about.  It&#8217;s a good solution for some circumstances, including yours.</p>
<p>The price is that because it always cleans the /v/c/a/archives, it will occasionally delete something before you want it deleted so you&#8217;ll have to download it again.  no big deal if it&#8217;s cached in a local apt-cacher proxy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-4</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-4</guid>
		<description>Unfortunately this is manual way. I want to clean archive after installation is done, automatically. Because sometimes builds in chroots fail because of lack of space, and apt archive contains hundreds of megabytes packages</description>
		<content:encoded><![CDATA[<p>Unfortunately this is manual way. I want to clean archive after installation is done, automatically. Because sometimes builds in chroots fail because of lack of space, and apt archive contains hundreds of megabytes packages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cas</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-3</link>
		<dc:creator>cas</dc:creator>
		<pubDate>Mon, 28 Apr 2008 21:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-3</guid>
		<description>just run &quot;apt-get clean&quot; after running &quot;apt-get upgrade&quot;</description>
		<content:encoded><![CDATA[<p>just run &#8220;apt-get clean&#8221; after running &#8220;apt-get upgrade&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://taz.net.au/blog/2008/04/26/keeping-varcacheaptarchives-empty/comment-page-1/#comment-2</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Mon, 28 Apr 2008 17:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://taz.net.au/blog/?p=5#comment-2</guid>
		<description>I&#039;m wondering same thing. But my problem is slightly different. I use apt-cacher for my local machine and my chroots, and I want to keep those /var/cache/apt/archives clean. But since there is no apt mirror, I can&#039;t use file:// adresses in sources.list.
Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering same thing. But my problem is slightly different. I use apt-cacher for my local machine and my chroots, and I want to keep those /var/cache/apt/archives clean. But since there is no apt mirror, I can&#8217;t use file:// adresses in sources.list.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
