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

Re: apt-get install pkg and remove pkg on the same line?!



smurfd wrote:
Hey there Debian-user list, ive been thinking, (not well enough, as it
seems).

How does dselect do, when you select/deselect packages to be
added/removed ? i mean, can you type yourself, like on one line..

	apt-get install packages remove packages?

Im not meaning
	apt-get install packages; apt-get remove packages

you see, so it would collect all packages in need to be added, and all
packages that needs to be removed..

Best Regards
/smurfd




Just use aptitude. 'aptitude install packageA', then when you get a prompt you can type -packageB to list packages for removal before proceeding[alternatively 'aptitude remove packageB' and then +packageA at the prompt to mark packages for install]. Curiously, 'echo -packageA | aptitude install pacakgeB' doesn't seem to work, it seems to expect all its input to come the pipe and doesn't let you proceed.

Attachment: pgpSCWlj_0hUB.pgp
Description: PGP signature


Reply to: