[Feature Request] Group by "group" in explicitly installed list
I love the explicitly installed list for cleaning up my system every now and then. But packages installed as part of a group (for example the "gnome" group) will have all their individual packages listed as being explicitly installed. It would be awesome if all these packages could be grouped together in one entry stating "gnome". The Arch wiki (https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Not_in_a_specified_group_or_repository) contains some hints on how it would be possible to enumerate such a list:
- List explicitly installed packages not in the base or base-devel groups:
- comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base base-devel | sort)
- List all installed packages unrequired by other packages, and which are not in the base or base-devel groups:
- comm -23 <(pacman -Qqt | sort) <(pacman -Sqg base base-devel | sort)
Both commands will only output all packages NOT in these groups. So the only thing remaining that would need to be done for this to work is:
- Figure out which groups are present in the system, to use said groups in the syntax of above mentioned commands.
- Include said groups in the explicitly installed list
- Use said groups in the syntax above, and concatenate the output of the commands with the list of 2.