You are not logged in.
I need to generate a list of package dependencies for a list of packages for a project I am working on, so basically I need to be able to get all the deps for packages, eg:
pacman -Q? bash
glibc
readline >=6.1
So far all I have found returns results based on what deps are needed, not listing all deps, anyone know how to do this? Or do I need to crack open the package database?
Last edited by Ryujin (2010-12-06 04:09:25)
Offline
The "problem" is that readline and glibc really are the only dependencies. Everything else is fulfilled by way of recursive dependencies (e.g. ncurses is a requirement but fulfilled because of readline). To that extent:
If you want a list of recursive dependencies for a package, you want pactree (which is currently part of pacman-contrib)
If you just want an easily parseable list of depends for a set of packages, you want expac (shameless self promotion)
Offline
pactree -l <package> | sort -u | grep ^[[:alnum:]]
Thanks!
Offline
Double Solved!
Thanks ![]()
Offline