Re: holding packages
Brian May <email@example.com> writes:
> dpkg --setstatus hold libldap2-dev libsasl-dev libhsync0 libhsync-dev
> all on the one dpkg command line.
Craig Sanders posted the following script to this list over a
year ago. It will do what you want.
# dpkg-hold -- command line tool to flag package(s) as held.
# by Craig Sanders, 1998-10-26. This script is hereby placed into the
# public domain.
# BUGS: this script has absolutely no error checking. this is not good.
if [ -z "$*" ] ; then
echo " dpkg-hold <package...>"
for i in $@ ; do
echo "$i hold"
done | dpkg --set-selections
It is trivial to modify this to make dpkg-unhold.
|_) _ |_ Robert D. Hilliard <firstname.lastname@example.org>
|_) (_) |_) 1294 S.W. Seagull Way <email@example.com>
Palm City, FL USA GPG Key ID: 390D6559
PGP Key ID: A8E40EB9