[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: holding packages

Brian May <bam@debian.org> 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.

#! /bin/bash

# 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 "Usage:"
        echo "      dpkg-hold <package...>"
        exit 1

for i in $@ ; do
        echo "$i        hold"
done | dpkg --set-selections

     It is trivial to modify this to make dpkg-unhold.

  |_)  _  |_       Robert D. Hilliard      <hilliard@debian.org>
  |_) (_) |_)      1294 S.W. Seagull Way   <bob@bobhilliard.net>
                   Palm City, FL  USA      GPG Key ID: 390D6559 
                                           PGP Key ID: A8E40EB9

Reply to: