sean finney on Thu, 28 Nov 2002 01:20:05 -0500


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

Re: [PLUG] debian dpkg questions: copying and holding


heya,

On Wed, Nov 27, 2002 at 10:53:27PM -0500, Jeff Abrahamson wrote:
> I'm confused about how to hold a package at its current version so
> that it won't try to upgrade itself. Does anyone know how to do this?
> I'm not seeing it on the dpkg man page. On google I see I can do it
> with dselect, but I thought dselect was a wrapper for dpkg. (I want to
> do this on the command line if I can.) Does anyone see what I'm
> missing here?

i think you can do this with 
# apt-get install package=version
# echo "package		hold" | dpkg --set-selections

but i could be wrong.

> Also, I'm moving to a new machine, and I'd like the new machine to
> have all the stuff the old one has. I've thought about

this definitely is a job for dpkg --set/get-selections.

just do

oldhost# dpkg --get-selections | ssh root@newhost "dpkg --set-selections"

newhost# apt-get dselect-upgrade

i think i've used something similar in the past as a shortcut for
setting stuff up for nodes on a cluster.


hth
	sean

Attachment: pgpdfp75kxAtS.pgp
Description: PGP signature