On Wed, Sep 20, 2000 at 09:33:20AM +0200, Frederik wrote:
> On a related issue:
> I've put kernel-image-2.2.17 on hold, because i've build my own
> kernel. I'd like to know if it's possible to make sure kernel-image isn't
> upgraded from the debian ftp's (my name: kernel-image-2.2.17_maui.1.2,
> which seems to be inferior to the version-number on the ftp)
> apt-get remove kernel-image-2.2.17 obviously doesn't do the trick...
i created two scripts to handle holding and unholding packages:
[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]$
not much error checking so be sure you give it the right package
name.
--
Ethan Benson
http://www.alaska.net/~erbenson/
Attachment:
pgpAWsR3OAyqg.pgp
Description: PGP signature