Skip to content

Making sure a package never gets updated

2008 June 3
tags:
by Philippe Delodder

If you want to make sure a
package on a Debian based distro never gets updated or upgraded you can
pin it. This means declare it in the apt preference file:

The syntax is as following:

Package: <package>
Pin: <pin definition>
Pin-Priority: <pin's priority>

An example on how tho pinning works:

Package: firefox
Pin: version 2.0.0.1
Pin-Priority: 1001

The pin can alos contain: release or origin

The pin-priority can be higher or lower, 1001 means it will never be updated or upgraded. This can be handy in some cases.

For more information on managin packages, you can look here at the APT HOWTO. Or alternative you can use this Debian : preventing a package from being updated

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

Bad Behavior has blocked 203 access attempts in the last 7 days.