You are not logged in.

#1 2009-02-12 18:16:16

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

[SOLVED] Query dependencies on a specific package

Hi,

I want to query a list of things that (implicitly or explicitly) depend on a specific package. For example, I want a list of all other packages that require the libx11 package. How can I do this?

Last edited by void.pointer (2009-02-12 23:42:16)

Offline

#2 2009-02-12 18:25:36

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] Query dependencies on a specific package

pacman -R libx11 smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2009-02-12 23:42:04

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] Query dependencies on a specific package

shining wrote:

pacman -R libx11 smile

Thanks! Perhaps if there was a query command to do the same thing it would be a little more intuitive smile After all, it *is* a query. I didn't actually want to remove it, so i never thought to look into -R.

Offline

#4 2009-02-13 00:34:13

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [SOLVED] Query dependencies on a specific package

Doing

pacman -Qi <package>

nets you lots of information on a given package (dependencies included). Good ol' pac-man-page might be able to help you further.

What are implicit and explicit dependencies, though? Do you mean something like recursive dependencies (firefox depends on gtk2, which in turn depends on X, which in turn depends on...)?

EDIT: nvm, found it out myself. roll

Say, do you just want to know the dependencies for yourself, or do you want to use the list in some kind of script?

Last edited by Runiq (2009-02-13 00:52:54)

Offline

#5 2009-02-13 01:11:56

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] Query dependencies on a specific package

I was simply just curious as to what required a specific package. I noticed libx11 was installed on my server when I am not using x11 at all, so I was curious to know what required that library since I did not explicitly install it. When I said "Implicit dependency" I did indeed mean recursive dependencies, if that is what you wish to call it. I prefer to call them implicit dependencies smile

Last edited by void.pointer (2009-02-13 01:12:11)

Offline

#6 2009-02-13 08:53:19

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [SOLVED] Query dependencies on a specific package

Okay, then pacman -Qi should serve you well enough I say. wink

Last edited by Runiq (2009-02-13 08:53:32)

Offline

#7 2009-02-13 16:27:59

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] Query dependencies on a specific package

void.pointer wrote:
shining wrote:

pacman -R libx11 smile

Thanks! Perhaps if there was a query command to do the same thing it would be a little more intuitive smile After all, it *is* a query. I didn't actually want to remove it, so i never thought to look into -R.

Sorry for the misinformation. You actually need to do "pacman -Rc libx11" to see all the parents.
pacman -R libx11 just tells you the first-level parents (package which depend directly on libx11), but for seeing these packages you can just do pacman -Qi libx11 and look at "required by".


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB