You are not logged in.

#1 2013-05-21 22:40:46

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

[SOLVED]How to get orphaned packages that aren't optional dependencies

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)

Offline

#2 2013-05-21 22:42:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]How to get orphaned packages that aren't optional dependencies

https://bbs.archlinux.org/viewtopic.php?id=163559
There is currently no way to do it.

Offline

#3 2013-05-21 23:19:18

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED]How to get orphaned packages that aren't optional dependencies

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.

Offline

#4 2013-05-21 23:29:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]How to get orphaned packages that aren't optional dependencies

Running

# 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

Offline

#5 2013-05-22 00:02:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED]How to get orphaned packages that aren't optional dependencies

I have posted 2 solutions in the other thread: https://bbs.archlinux.org/viewtopic.php … 0#p1276210


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2013-05-22 00:16:04

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED]How to get orphaned packages that aren't optional dependencies

Thank you, this script did it: http://xyne.archlinux.ca/scripts/pkg/pk … ue_orphans
Marking as solved.

Offline

Board footer

Powered by FluxBB