You are not logged in.
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
pacman -R libx11
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
pacman -R libx11
Thanks! Perhaps if there was a query command to do the same thing it would be a little more intuitive After all, it *is* a query. I didn't actually want to remove it, so i never thought to look into -R.
Offline
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.
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
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
Last edited by void.pointer (2009-02-13 01:12:11)
Offline
Okay, then pacman -Qi should serve you well enough I say.
Last edited by Runiq (2009-02-13 08:53:32)
Offline
shining wrote:pacman -R libx11
Thanks! Perhaps if there was a query command to do the same thing it would be a little more intuitive 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