July 28, 2011

How to Add Backports to Debian Sources List

Have a little bit Outdated software with Problem ? backports is the solution,Backports are recompiled packages from testing (mostly) and unstable (in a few cases only, e.g. security updates) in a stable environment so that they will run without new libraries (whenever it is possible) on a Debian stable distribution. It is recommended to select single backports which fit your needs, and not to use all available backports.
Add backports to your sources.list
  1. Add this line
    deb http://backports.debian.org/debian-backports squeeze-backports main
    to your sources.list (or add a new file to /etc/apt/sources.list.d/)
  2. Run apt-get update
Install a package from backports
All backports are deactivated by default (i.e. the packages are pinned to 100 by using But Automatic Upgrades: yes in the Release files. 
If you want to install something from backports run:
apt-get -t squeeze-backports install "package"
of course you can use aptitude as well:
aptitude -t squeeze-backports install "package"

No comments:

Post a Comment

Disqus for Rendy Blog