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

Re: how to mark package "hold"



On Sat, Feb 19, 2000 at 07:01:48PM +0200, Martin Fluch wrote:
> 
> Im still wondering, why ther is no --hold/unhold option in dpkg. IMHO this
> is somehow inconsistant. This step is not that unusual. Wishlistbug?
> 

this works fine for me:

[eb@socrates eb]$ cat /usr/local/sbin/dhold
#! /bin/sh

PRG=`basename $0`

if [ `id -u` != 0 ] ; then
    echo "you're not root, go away."
    exit 1
elif [ $# != 1 ] ; then
    echo "Usage: $PRG <packagename>"
    exit 1
else
    echo $1 hold | dpkg --set-selections
fi
[eb@socrates eb]$ cat /usr/local/sbin/dunhold
#! /bin/sh

PRG=`basename $0`

if [ `id -u` != 0 ] ; then
    echo "you're not root, go away."
    exit 1
elif [ $# != 1 ] ; then
    echo "Usage: $PRG <packagename>"
    exit 1
else
    echo $1 install | dpkg --set-selections
fi
[eb@socrates eb]$

I think `install' is the right way to unhold a package anyway ;-)

-- 
Ethan Benson


Reply to: