This command will list all Gnome packages that are currently installed on your Debian system and can be uninstalled.
4.4 Mon Sep 10 jason@Yog-Sothoth 0: $ dpkg --get-selections | grep gnome | cut -f 1 |
This example lists all Doom packages installed on your system.
4.4 Mon Sep 10 jason@Yog-Sothoth 0: $ dpkg --get-selections | grep doom | cut -f 1 chocolate-doom doom-wad-shareware freedoom gzdoom zdoom |
Use this example to list all installed packages.
4.4 Mon Sep 10 jason@Yog-Sothoth 0: $ dpkg --get-selections | grep -v deinstall | cut -f 1 |
These examples really work well.