You are not logged in.

#1 2019-03-14 17:35:10

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

[SOLVED] query the package database for optionally required packages

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

#2 2019-03-14 17:51:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] query the package database for optionally required packages

expac has an optional deps flag.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-03-14 17:52:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: [SOLVED] query the package database for optionally required packages

pacman does, too, if you read the man page or the help output.

Online

#4 2019-03-14 19:00:00

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] query the package database for optionally required packages

jasonwryan wrote:

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

#5 2019-03-14 19:44:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] query the package database for optionally required packages

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.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2019-03-14 19:48:52

serzh-z
Member
From: Russia
Registered: 2012-11-13
Posts: 12

Re: [SOLVED] query the package database for optionally required packages

Trilby wrote:
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

Board footer

Powered by FluxBB