Ubuntu: A centralized apt package cache using Apt-Cacher-NG

ubuntuIt is common in secure production datacenters for internal hosts to be forced to go through a reverse proxy for public internet access.  The same concept can be applied to apt package management, where setting up a centralized package proxy enables caching as well as security controls.

In a datacenter where you could have hundreds of host instances all needing the same package/kernel/security patch, having a cache of packages inside your network can save a significant amount of network bandwidth and operator time.

In this article, we’ll go through installation and configuration of Apt-Cacher-NG, a specialized reverse proxy for Debian based distributions that does whitelisting of repositories, precaching, and remapping to support caching for SSL repositories.

Continue reading “Ubuntu: A centralized apt package cache using Apt-Cacher-NG”