Is there some tool to show me all packages I've installed that are not part of the set of packages that comes with a "clean" install?

I'm just cleaning out packages I don't use any more prior to upgrading from F15 to F16 (the computer has passed hands a number of times and is slowly accumulating unused packages).

I don't want to actually do a fresh install of F16 (so that I can keep some particular packages that I use & config files etc), but I'd like to restore my F15 to as close to a "clean" install as possible before the upgrade.

I've done a little with rpmcleaner and cleanup-packages, but I'd prefer just a list of "packages not in a fresh install of F15", bonus points if it displays in an 'Add/Remove Software'-type interface (purely because it easily displays package descriptions and it's easier to uncheck a checkbox than yum erase whats-the-package-name-again).


NOT responsible if this breaks your system...

comm -3 <(rpm -qa | sort) <(rpm -qa 'packager=Fedora Project' | sort) | grep -v '^gpg-pubkey-'
| improve this answer | |
  • (Could whoever it was explain the -1 so that I can make a more informed decision as to the pitfalls/benifits of usin this?) So I guess packages that come with fedora by default have 'packager=Fedora Project'? Why do you do the grep bit (I don't have access to that computer today but will play around tomorrow). – mathematical.coffee Apr 11 '12 at 3:39
  • The keys used to verify signed RPMs are installed into the rpmdb with the name of "gpg-pubkey"; we exclude them since we can't automatically tell which are Fedora's, and removing Fedora's keys could cause problems. – Ignacio Vazquez-Abrams Apr 11 '12 at 3:43
  • Thanks - it works well enough. Of course I wouldn't blindly delete everything on that list, but it does bring to my attention packages I don't use at all – mathematical.coffee Apr 12 '12 at 0:27

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.