Unattended upgrades on Debian

There's a simple way of having unattended upgrades, having the possiblity to backlist packages or limit upgrades for example to security patches etc. apt-get install unattended-upgrades apt-listchanges dpkg-reconfigure -plow unattended-upgrades Edit /etc/apt/apt.conf.d/50unattended-upgrades with this content: // Automatically upgrade packages from these origin patterns // In this case we install only security updates Unattended-Upgrade::Origins-Pattern { //   […]

Choosing the fastest Mirror on Debian

On Debian there's a tool that finds out which is the fastest/nearest mirror and creates a sources.list file for you: netselect-apt The installation: apt-get update apt-get install netselect-apt To find the fastest/nearest mirror: netselect-apt Backup your old sources.list: mv /etc/apt/sources.list{,.bak} Replace it with the new one: cp sources.list /etc/apt/sources.list Update and install your packages: apt-get […]

Installing apt-cacher-ng proxy to accelerate installations and save bandwidth

The Installation is quite simple. On a Debian or Ubuntu just type: apt-get install apt-cacher-ng This will install the package and already start the service. Then you will have to point you clients to use your proxy when installing new packages. Therefore just create /etc/apt/apt.conf.d/01proxy with the following content: Acquire::http { Proxy ""; }; whereas […]

Putting packages on hold with apt on Debian

This will make that package stay stuck in that version so you will have to take it off hold if you want to upgrade it: echo "package hold" | dpkg –set-selections   Alternatively use: apt-mark hold package   To take a package off Hold: echo "package install" | dpkg –set-selections   Alternatively use: apt-mark unhold […]

Some useful APT options

apt by default reads files in /etc/apt/apt.conf.d/, so you can create a file for each line if you like to or create a new file in there and put them all in: Acquire::Check-Valid-Until "false"; #problems with not up2date mirrors, release file expired? APT::Get::AllowUnauthenticated "true"; #allow installation of unauthenticated files GPG::Check false; #disable all GPG checks […]