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 […]

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 […]

Managing update with apt-get and cron-apt on debian-based systems

In this Howto I'd like to show how you can download updates automatically and receive notifications when they're available on your debian-based system.   All the debian repositories, apt-get uses are normally listed in this file: /etc/apt/sources.list   The current list of updates can be downloaded using: apt-get update   The Update is installed simply […]

Installing Virtualbox on Debian

1. wget https://www.virtualbox.org/download/oracle_vbox.asc 2. apt-key add oracle_vbox.asc   3. Now add the following line to to your /etc/apt/sources.list:     deb http://www.virtualbox.org/debian etch non-free     (replace etch with your release if using other)   4. apt-get update && apt-get install virtualbox     If using the .deb-Package from www.virtualbox.org/wiki/Downloads:   apt-get install bcc iasl xsltproc xalan libxalan110-dev uuid-dev zlib1g-dev […]

Debian apt Basics

Here I'd like to show the most important commands for the installation of packages and updates on your Debian system. The package manager on Debian is apt.   The repositories from which you can install packages and updates is /etc/apt/sources.list. Here's an example:   /etc/apt/sources.list: deb http://ftp.de.debian.org/debian/ etch main deb-src http://ftp.de.debian.org/debian/ etch main deb http://security.debian.org/ […]