manatools / dnfdragora

dnfdragora is a dnf frontend based on libyui abstraction
GNU General Public License v3.0
137 stars 41 forks source link

RFE: Please support a 'userinstalled' view #46

Open xenithorb opened 7 years ago

xenithorb commented 7 years ago

Where there is currently All -> Installed I would also like All -> User Installed which would present those packages normally seen under sudo dnf history userinstalled - which are of course those packages explicitly installed by the user.

The goal would be to more easily comb through user installed package leaves in order to remove unwanted packages and their dependencies. I find that it's too difficult to do that from the All -> Installed screen because there are simply too many packages to go through, and there's no good indication of whether you're removing a leaf or a shared dependency.

I regularly use userinstalled information to build a makeshift "world file" (if you're familiar with gentoo) and then remove the lines of packages that I no longer want and use comm to basically show me only the packages that I removed from the list, which I then pass through xargs and then to sudo dnf remove - this way I can go through and quickly remove things I don't need and/or was just testing.

It would be really nice if I could replace doing that with functionality added by dnfdragora in such a way that I can view those packages that I've explicitly installed (mainly the point is to exclude deps) and easily uninstall them with the removal functionality that's already present.

Note: Those listed under userinstalled are not necessarily leaves but usually are, as you could have user-installed a package that then became a dependency, and there could be leaves on the system that weren't installed by the user. But, from experience I find that the userinstalled view is the best for managing what to remove.