set package on hold — debian admin service

How do i put an debian package that is already installed on hold so that it doesn’t get up/downgraded?

A common admin problem that i just had with the package psi which over here is a aliened version of psi 0.11 from a external mandrake package is that you want to prevent packages from beeing touched i.e. upgraded or downgraded or removed as a dependancy.

You want to set these packages ‘on hold’ and here is how:

echo “{package name} hold” | dpkg —set-selections

Easy once you know how, isn’t it? ;)

To free the package once again just use ‘install’ instead of ‘hold’.

Add post to:   Delicious Digg Technorati Facebook Stumble Upon Google Yahoo Reddit Slashdot Mister-Wong.ru
Make comment

Comments

No comments for this post

Required. 30 chars of fewer.

Required.