Debian Admin - Your way to Debian World

April 5, 2007

How to Install Backports Debian Packages

by @ 8:59 am. Filed under Package Mgmt

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

If You are running Debian stable, because you prefer the stable Debian tree. It runs great, there is just one problem: the software is a little bit outdated compared to other distributions. That is where backports come in.

Backports are recompiled packages from testing (mostly) and unstable (in a few cases only, e.g. security updates), so they will run without new libraries (wherever it is possible) on a stable Debian distribution. I recommend you to pick out single backports which fits your needs, and not to use all backports available here.

If you want to install Backport debian packages follow this simple procedure

First you need to add this line to your /etc/apt/sources.list file

deb http://www.backports.org/debian/ sarge-backports main contrib non-free

Add the following lines to your /etc/apt/preferences That will deactivate all packages from backports.org

Package: *
Pin: release a=sarge-backports
Pin-Priority: 200

If you want to activate a package (e.g. nagios2), add these lines to /etc/apt/preferences

Package: nagios2
Pin: release a=sarge-backports
Pin-Priority: 999

Then you need to update the source list using the following command

#apt-get update

Install the package using the following command

#apt-get install nagios2

as usual.

Another way is to skip the second entry in /etc/apt/preferences and to use

#apt-get -t sarge-backports install nagios2

which is easier when the package requires additional backports.

If you want to install any package you need to replace the nagios2 package name with the name of the package you want to install.

Tags: , ,

You may also be interested in...

One Response to “How to Install Backports Debian Packages”

  1. Janne Granström Says:

    i dont use that only one package method..

    i have just that backports tree and debian own stable trees in my sources and i’m very happy what i get from backports even its replaces some debian stables softwares.

    i dont really understand why people wants use that preferens file? too slow to install just one program (always need to edit that file) :O

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.