You are not logged in.

#1 2013-05-18 10:53:06

mooop12
Member
Registered: 2013-05-04
Posts: 17

[SOLVED] Optional dependencies ARE orphans

According to pacman. "pacman -Qdt" lists all unneeded dependencies, including those that are optional. https://wiki.archlinux.org/index.php/Us … OptDepends says that it shouldn't be the case in pacman 4.1, but it is. Is there another way of listing orphans and not optional dependencies? Other than setting them to manually installed.

Last edited by mooop12 (2013-05-18 17:27:36)

Offline

#2 2013-05-18 12:24:04

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,329
Website

Re: [SOLVED] Optional dependencies ARE orphans

That wiki page do not reflect the current situation with pacman at all...    There is currently no way to do what you ask.

Offline

#3 2013-05-18 12:33:25

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: [SOLVED] Optional dependencies ARE orphans

Hmm it says "Output related tasks are implemented in pacman-4.1". Actually, you are the one who put it there smile Anyway, is it a work in progress? I imagine that something like this isn't too high of a priority, but it's a nice feature to have.

Offline

#4 2013-05-18 12:35:17

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,329
Website

Re: [SOLVED] Optional dependencies ARE orphans

Output related task are:
- pacman -Qi shows "Optional for: ..."
- Removing an optdepend gives a warning
- the notification of new optdepends when installing packages show if they are already installed or not.

and that is about it...

Offline

#5 2013-05-18 17:27:21

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: [SOLVED] Optional dependencies ARE orphans

Well, I hope it gets implemented soon. In the meantime I'm setting this thread to solved.

Offline

#6 2013-05-22 00:01:44

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: [SOLVED] Optional dependencies ARE orphans

There are currently 2 ways to do this:
1) convert optdeps to deps with makedep then use "pacman -Qdt" as usual
2) use pkg-list_true_orphans (depends on pyalpm in [extra])

Offline

#7 2013-05-22 13:05:41

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: [SOLVED] Optional dependencies ARE orphans

Thanks Xyne, your pkg-list_true_orphans script seems to work like a charm smile

Offline

Board footer

Powered by FluxBB