RESEARCHUT
Minds With Innovations

RESEARCHUT - minds with innovations

02 Oct '05 - 130 W - + 11 - 1 Putting Debian packages on hold -- The dpkg way

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.

  
Remember personal info?

Emoticons / Textile

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

  (Register your username / Log in)

Notify:
Hide email:

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.

Trackback link:

Please enable javascript to generate a trackback url