LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices


Rate this Entry

mixing stable and testing packages

Posted 11-19-2011 at 09:42 PM by neonsignal

Sometimes when sticking with a Debian stable version, it can be useful to just update one or two packages to a testing or even unstable version, because of new features.

The ideal way to do this is to use backports, because these have been tested (and patched if necessary) to work with the stable versions of other packages. The backports repository is added to /etc/apt/sources.list:
Code:
deb http://backports.debian.org/debian-backports/ squeeze-backports main contrib
Backport packages have a lower priority by default, but the backport version can be forced by using apt-get:
Code:
apt-get install package -t squeeze-backports
In cases where the package is not available as a backport, it is possible to mix testing packages with stable ones. There is a risk of incompatibilities, but many user applications will work fine.

First the testing repositories are added to /etc/apt/sources.list, alongside of the repositories. Then the default release is set to 'stable', as normally the testing versions will override, and the whole system would be updated. In older versions of Debian, this was in /etc/apt/apt.conf; now the configuration can be set in a file in /etc/apt/apt.conf.d, for example in 70debconf:
Code:
APT::Default-Release "stable";
Since the default is set to 'stable', a testing version of an application is forced using apt-get:
Code:
apt-get install package -t testing
Posted in Uncategorized
Views 559 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration