<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.thibble.org/goomba/index.php?action=history&amp;feed=atom&amp;title=Apt_Repository_Cache</id>
	<title>Apt Repository Cache - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thibble.org/goomba/index.php?action=history&amp;feed=atom&amp;title=Apt_Repository_Cache"/>
	<link rel="alternate" type="text/html" href="https://wiki.thibble.org/goomba/index.php?title=Apt_Repository_Cache&amp;action=history"/>
	<updated>2026-07-29T01:07:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.thibble.org/goomba/index.php?title=Apt_Repository_Cache&amp;diff=97&amp;oldid=prev</id>
		<title>T20A02: Created page with &quot;==Apt Repository Cache==  &quot;apt-cache-ng&quot; is a apt repository package which allows the configuration of a apt repository cache server, acting much like a windows update cache server but for Linux distributions such as Debian or Ubuntu. This service will log and cache package files as well as provide a web interface for monitoring usage and other statistics.   ===Setup===  First start with a fresh installation for your server, and a static IP address. In my case I used Deb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.thibble.org/goomba/index.php?title=Apt_Repository_Cache&amp;diff=97&amp;oldid=prev"/>
		<updated>2024-11-27T16:17:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Apt Repository Cache==  &amp;quot;apt-cache-ng&amp;quot; is a apt repository package which allows the configuration of a apt repository cache server, acting much like a windows update cache server but for Linux distributions such as Debian or Ubuntu. This service will log and cache package files as well as provide a web interface for monitoring usage and other statistics.   ===Setup===  First start with a fresh installation for your server, and a static IP address. In my case I used Deb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Apt Repository Cache==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;apt-cache-ng&amp;quot; is a apt repository package which allows the configuration of a apt repository cache server, acting much like a windows update cache server but for Linux distributions such as Debian or Ubuntu. This service will log and cache package files as well as provide a web interface for monitoring usage and other statistics. &lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
&lt;br /&gt;
First start with a fresh installation for your server, and a static IP address. In my case I used Debian 12.&lt;br /&gt;
&lt;br /&gt;
1. Start with a fresh update&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; apt install upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Next install the package&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt install apt-cacher-ng&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Now alow the required ports through your machine firewall. The service runs on port 3142. &lt;br /&gt;
&lt;br /&gt;
Example for ufw:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ufw allow 3142/tcp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Now you have a basic installation. You should be able to navigate to the servers IP, using port 3142, and see the web interface including usage.&lt;br /&gt;
&lt;br /&gt;
[[File:Apt-Cacher-NG-WEB.png|400px]]&lt;br /&gt;
&lt;br /&gt;
===Client Configuration===&lt;br /&gt;
&lt;br /&gt;
Now that we have the server configured and running, and we verified it with the presence of the web UI, we can configure the Client side. This is done simply by adding one like to a file, in your Clients apt DConf folder. &lt;br /&gt;
&lt;br /&gt;
1. Run the following command, to generate a file called &amp;quot;00cacher&amp;quot; and populate it with the config line. make sure to update the IP address to match that of your caching server&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;#039;Acquire::http::Proxy &amp;quot;http://cacheserver:3142&amp;quot;;&amp;#039; \&lt;br /&gt;
  &amp;gt; /etc/apt/apt.conf.d/00cacher&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are done! Running an apt update, make sure you do not see any errors, if you do there is likely a misconfiguration in the client config file.&lt;br /&gt;
&lt;br /&gt;
Going back over to the server you should find activity in the cacher log located at&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/var/log/apt-cacher-ng/apt-cacher.log&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
and you should also now see content stored in &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/var/cache/apt-cacher-ng/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>T20A02</name></author>
	</entry>
</feed>