> Hello, > > There is 'equo unused' and it works, but I was thinking of making > something that works more like emerge --depclean (if I understand > correctly how it works). I have forked the git repository of Entropy and > made such a change. > > It can be found here: https://github.com/Enlik/entropy/commits/master. > > "[entropy.client] equo unused that works more like emerge --depclean > It's more like a draft. It works, it prints packages that might be > uninstalled, but several options are ignored, etc." > > to test: git clone…; cd client; equo unused > > The change is simple, but treat it as experimental (no guarantees!). I > don't know the Entropy code base well (heck, I barely do), and I didn't > spend much time on looking how things work, but anyway - what's important: > > - the dependency calculation doesn't seem to be costly! I may have > oversimplified something, though; > - it seems to work quite well in terms on what is printed (except that > maybe spm-installed packages should be treated as installed by user). > > It works this way: select all packages that are marked as being > installed by user, collect their dependencies recursively, and print > packages that are installed but not on that collection. > > I am curious on what you think. > > Fabio: maybe you would be interested in this as well. >
This feature should already be available. Fabio: there is one thing I missed: update to the manual pages. I'm not sending a patch because it's a matter of executing a script. $ equo unused -h usage: equo unusedpackages [-h] [--quiet] [--sortbysize] [--spm-wanted] show unused packages (pay attention) optional arguments: -h, --help show this help message and exit --quiet, -q show less details (useful for scripting) --sortbysize sort packages by size --spm-wanted consider packages installed with a Source Package Manager to be wanted