On the pacman tips and tricks wiki page, I see there is a way to get orphaned packages, but this sometimes catches packages that are orphaned but are optional dependencies for other packages. Is there a way to get orphaned packages that are not optional dependencies? Also, I'm not sure if this is the right place on the forums for this question, so please let me know if there is a better place.
Last edited by UnsolvedCypher (2013-05-22 00:16:47)
There is currently no way to do it.
No easy way, but since pacman -Qi shows 'optional for', it shouldn't be too hard to write a script that filters the list of orphans.
# pacman -Rns python-docutils cdparanoia checking dependencies... :: abcde optionally requires cdparanoia: Paranoia ripping support
should be enough. Now you know which package is not a real orphan and why.
If you want a fugly script for that:
$ pacman -Qi $(pacman -Qqdt) | grep -e Name -e "Optional For" | grep -v None | grep -B1 Optional Name : cdparanoia Optional For : abcde
I have posted 2 solutions in the other thread: https://bbs.archlinux.org/viewtopic.php … 0#p1276210
Thank you, this script did it: http://xyne.archlinux.ca/scripts/pkg/pk … ue_orphans
Marking as solved.