RESEARCHUT -- Minds With Innovations
RESEARCHUT
Minds With Innovations

RESEARCHUT - minds with innovations

This site has been archived. The new interface is: HERE

Putting Debian packages on hold -- The dpkg way

Sunday 02 October 2005 at 05:57 am.

At times, for people like me who use a heterogeneous set of packages, it becomes necessary to put certain packages on “hold” so that nothing breaks.

The plain dpkg way of putting packages on hold is very very simple.
I’ll be taking a package named “foo” as an example. Here are the steps:

pre>1) dpkg —get-selections foo > selections.txt
This will give you the package and its state on your system. The output written to selections.txt would be something like this:
pre>foo install

2) Replace the text “install” with “hold” in the selections.txt file.

pre>3) dpkg —set-selections < selections.txt
This will change the state of package “foo” from “install” to “hold”.

That’s it.

Please leave a comment if you have any suggestion.

No comments



(optional field)
(optional field)
Sorry for the trouble but to prevent spam I require you to answer this silly question.

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.