Install unstable packages on lenny

I run lenny on my home server. That said, there are times when I want new packages which are not available on lenny backports. One solution is apt pinning (another is compile from source :p).

First, add the unstable repo entry in /etc/apt/source.list:

deb unstable main

Then, add the following in /etc/apt/preferences:

Package: *
Pin: release a=unstable
Pin-Priority: 800

While this works generally, please refer to apt_preferences manpage for more details. Finally, run

apt-get update && apt-get install -t unstable <your-new-package>

to update and install the package from unstable. Depending on individual requirements, you may choose to substitute testing for unstable. Enjoy!

AptPinning – Debian Wiki


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