[Cialug] Debian ?

Paul Gray gray at cs.uni.edu
Mon Jun 13 17:00:32 CDT 2005

On Mon, Jun 13, 2005 at 04:30:13PM -0500, Mark Hesseltine wrote:
> dpkg --get-selections | cut -f 1 > installed_packages
> This would create a file of all the packages installed. You could edit
> this file to remove the packages you don't want to remove (i.e.
> firefox, X, etc.) Save the file as remove_packages
> You could then do an:
> apt-get remove --purge `cat remove_packages`

If you're doing the --get-selections approach, then why not just dump the
entire list:

dpkg --get-selections > packages

EDIT the packages file, changing the packages that you don't want from
"install" to "deinstall"

Then, reverse the process:

dpkg --set-selectsion < packages
apt-get dselect upgrade.

Same approach with a different twist is all.

Paul Gray                                         -o)
323 Wright Hall                                   /\\
University of Northern Iowa                      _\_V
Message void if penguin violated ...  Don't mess with the penguin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://cialug.org/pipermail/cialug/attachments/20050613/b2b2c756/attachment.pgp

More information about the Cialug mailing list