Skip to content

Instantly share code, notes, and snippets.

@Canx
Created January 11, 2022 12:13
Show Gist options
  • Save Canx/18fb74f7d85f5f6021ff981c56963f2e to your computer and use it in GitHub Desktop.
Save Canx/18fb74f7d85f5f6021ff981c56963f2e to your computer and use it in GitHub Desktop.
apt-cacher-ng cheatsheet

En servidor

sudo apt-get install apt-cacher-ng

Añadir archivo /etc/apt-cacher-ng/ubuntu_mirrors con las lineas:

http://archive.ubuntu.com
http://es.archive.ubuntu.com
http://security.ubuntu.com

Modificar archivo /etc/apt-cacher-ng/backend_ubuntu con los mirrors alternativos:

http://ftp.udc.es/ubuntu
http://ubuntu.cica.es/ubuntu
http://ftp.caliu.cat/pub/distribucions/ubuntu

Reiniciar servicio:

sudo systemctl restart apt-cacher-ng

En los clientes

Añadir archivo /etc/apt/apt.conf con la linea:

Acquire::http::Proxy "http://<ip_del_servidor>:3142";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment