On 08/09/2021 01:28, Shironeko wrote: > Hi, > > When I want to try something out, I often install packages with -- > asdeps, and so I can easily uninstall all my changes after I'm done. > Which let me to the finding that lots of packages on my systems are > actually orphans eventhough they don't show up in -Qdt. > > This seems to be happening because of dependency loops, example > includes bemenu and bemenu-wayland, xdg-desktop-portal and xdg-desktop- > portal-wlr and so on. > > I understand that by the letter -Qdt is doing what it's supposed to, > but everywhere I look it is suggested as the way to find orphans, which > is incorrect. Perhaps there should be another flag, or the existing > flag can be changed so this issue is resolved? > > An hacky solution I found in the BBS is below, which might be useful > for tests. > > pacman -Qq | sort -u | comm -23 - <(pacman -Qeq | xargs -I PKG -P > $(nproc) pactree -lu PKG | sort -u) > > Regards, > Shironeko >
I thought there was already a bug open on this but I can't seem to find one. It's something I'm aware of and would like to see fixed. Fastest way to see it fixed though is send a patch.
