You are not logged in.
Is there the solution for query the package database for optionally required packages?
I mean that I wish to list all packages installed "asdeps" but not hard-required by any other package. Something like pacman -Qqd | pacman -Qi but where "Optional For" is not "None".
Last edited by serzh-z (2019-03-14 19:01:44)
I woke up in my bed today - a hundred years ago. Who am I? Who am I...
Offline
expac has an optional deps flag.
Offline
pacman does, too, if you read the man page or the help output.
Offline
expac has an optional deps flag.
Thanks, but I did not find a way how to use it because it prints '?' for '%Q' .
It looks like Scimmia's suggestion works: `pacman -Qdtt` gives me what I want. Although it is not obvious from the man page.
Last edited by serzh-z (2019-03-14 19:00:37)
I woke up in my bed today - a hundred years ago. Who am I? Who am I...
Offline
Thanks, but I did not find a way how to use it because it prints '?' for '%Q' .
Probably because %Q is not a valid format option - where did that come from? It's certainly not in the man page.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
serzh-z wrote:Thanks, but I did not find a way how to use it because it prints '?' for '%Q' .
Probably because %Q is not a valid format option - where did that come from? It's certainly not in the man page.
Oh, it was a typo. Probably should be '%O' or '%o'. Anyway - `pacman -Qdtt` is more suitable.
Last edited by serzh-z (2019-03-14 19:49:04)
I woke up in my bed today - a hundred years ago. Who am I? Who am I...
Offline