Set default release packages

Posted on: October 9, 2011


Apt-pinning is one method for allowing packages from different Debian releases to co-exist on the same system.

To use Debian packages on a default release system (stable or testing or unstable or experimental) you should create /etc/apt/apt.conf and set the default release to track:

[root@enterprise ~]# echo "APT::Default-Release "stable";" > /etc/apt/apt.conf

Or you can create /etc/apt/preferences and pin the priority of the different releases:

[root@enterprise ~]# touch /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release a=testing
Pin-Priority: 90


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


  • None
  • analialorenzatto: Buzz is just a host name for this example, it doesn't have any relation to the topic. Instead of being "Buzz", could be whatever name.
  • fridelain: >buzz What's the story behind this host name? Actully running buzz, once running buzz and upgraded many times since, or unrelated to debian naming
  • Pratik: Nice, but I would change it to include more directories. Like my .mozilla and .kde4 by using .{config,mozilla,kde4} instead of just .config .


%d bloggers like this: