I have bloated my system with unnecessary packages and want to "start from zero". Rather than reinstalling I would prefer to do it from the OS and do it live.
How do I remove all packages not in base install?
Some relevant things that didn't quite pan out https://ask.fedoraproject.org/en/question/8646/erase-all-packages-except-a-given-list-of-packagesgroups/ https://wiki.archlinux.org/index.php/Pacman_tips#Removing_everything_but_base_group
Edit: to clarify using dnf