You are here: Home / Debian GNU/Linux / System / Software / Setup the Debian-Updates repositories (ex volatile)

Setup the Debian-Updates repositories (ex volatile)

by Pierre-Yves Landuré last modified Nov 29, 2017 05:29

The Debian-Updates repositories contains fresher versions of softwares present in mainstream Debian (ClamAV for example). This howto describe an automated process to enable these repositories in Apt.

This howto is tested on:

  • Debian 6.0 Squeeze
  • Debian 7.0 Wheezy


Install the Linux Standard Base software :

command apt-get install lsb-release

Detect the distribution name :

DEBIAN_VERSION="$(command lsb_release -cs)"

Detect the currently used download mirror :

MIRROR=$(command egrep "^deb.*${DEBIAN_VERSION}" '/etc/apt/sources.list' \
    | command egrep -v "updates|-src|cdrom" \
    | cut --delimiter=" " --fields=2)

Add the Debian-Updates repositories to Apt configuration :

command echo "# ${DEBIAN_VERSION}-updates, previously known as 'volatile'
deb ${DEBIAN_VERSION}-updates main contrib non-free
deb-src ${DEBIAN_VERSION}-updates main contrib non-free" \
    > "/etc/apt/sources.list.d/${DEBIAN_VERSION}-updates.list"

Update the list of available packages :

command apt-get update