apt-get


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

These 2 equal commands 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 apt-mark hold package 2 equal commands to take a package off Hold: echo "package install" | dpkg –set-selections apt-mark unhold package […]


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 the file: /etc/apt/sources.list The current list of updates can be downloaded using: apt-get update The Update is installed simply by executing: apt-get […]


Installing Virtualbox on Debian

1. wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -; wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add – 3. Now add the following line to to your /etc/apt/sources.list:     deb http://download.virtualbox.org/virtualbox/debian jessie non-free     (replace jessie with your release if using other) 4. apt-get update && apt-get install virtualbox Just a quick note, not to forget: […]


Debian: Installing/Updating your kernel

You can show the currently running kernel version by: uname -a There are 3 possibilities updating your kernel on Debian:   1. Installation of a kernel image: This is the simpliest way of installing a new kernel. If you have no special requirements or special stuff that you want to have in your kernel, this […]