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

  • Most useful thing I have found so far is rpmreaper. Really useful for cleaning up so far. – Fabián Heredia Montiel May 19 '15 at 19:48

If you still have the original /root/install.log you can follow this answer to compare the originally-installed and subsequently-installed packages. If not, you will need to pull a list of base packages off your install-media and perform a similar comparison.

| improve this answer | |
  • File doesn't exist. ;_; – Fabián Heredia Montiel May 12 '15 at 3:21
  • 1
    another option is using ' /root/anaconda-ks.cfg ' it has the "'Groups" and any single packages installed at initial you can run rpm list installed |grep -v $(all those groups /packages) which gives you a naked initial install – linuxdev2013 May 12 '15 at 4:39
  • Ok, so second part of you answer, javabrett, was the one that helped, thanks. C: – Fabián Heredia Montiel May 19 '15 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.