How to hold packages in Debian.

To put a package to hold:

echo "package_name hold"|dpkg --set-selections

to unhold it:

echo "package_name install"|dpkg --set-selecions

the fellowing will list packages on hold:

dpkg --get-selections "*"|grep -e "hold$"

Leave a Reply

Your email address will not be published. Required fields are marked *

*