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

Re: How Do I Put a Package On Hold?



on Sat, Dec 30, 2000 at 08:41:45PM -0500, Mark Rahner (mark_rahner@sparta.com) wrote:

Press the large red button on the phone?  <g>

> Hello Debian World,

> I'm trying to upgrade from a mixed potato/woody to a woody.  I edited
> my sources.list file, ran "apt-get update", then "apt-get
> dist-upgrade".  This procedure results in an attempt to remove
> kernel-image-2.2.17.  I don't want to do this because I'm running a
> custom kernel to support Win4Lin.  If I tell it not to remove the
> kernel image, the remainder of the dist-upgrade is aborted.  From what
> I can glean from the various man pages, my problem would be avoided by
> placing the kernel-image package "on hold" but I can't for the life of
> me figure out how to do this.  The dpkg man page implies that this
> should be possible using dselect but the dselect man page mentions no
> such thing.
> 
> Any help would be greatly appreciated.
> Thanks in advance,
> Mark

I *think* this works:

    $ dpkg --get-selections > selections.out
    $ cp selections.out selections.in
    $ vi selections.in  # replace 'install' with 'hold' for desired pkgs.
    $ dpkg --set-selections < selections.in

Just tried that w/o a subsequent update, it seems to have worked (didn't
break anything, anyhow).

...though corrections welcomed.

-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 Evangelist, Zelerate, Inc.                      http://www.zelerate.org
  What part of "Gestalt" don't you understand?      There is no K5 cabal
   http://gestalt-system.sourceforge.net/        http://www.kuro5hin.org

Attachment: pgpptUoAs59hE.pgp
Description: PGP signature


Reply to: