You are not logged in.
Pages: 1
Is there any way to get pacman to output the dependencies of a package? So far I've got
pacman -Qi <package> | grep -i depend | cut -c18-but that sometimes includes version numbers or for some reason, the repo the package is in.
Offline
pactree
[karol@black ~]$ pactree -ul firefox-nightly
firefox-nightly
desktop-file-utils
glib2
pcre
gcc-libs
glibc
linux-api-headers
tzdata
libffi
libxt
libsm
libice
xproto
util-linux util-linux-ng
filesystem
iana-etc
bash
readline
ncurses
coreutils
shadow
pam
db
cracklib
zlib
libtirpc
libgssglue
acl
attr
gmp
libcap
libx11
libxcb
xcb-proto
libxdmcp
libxau
kbproto
mime-types
nss
nspr
sqlite3
shared-mime-info
libxml2As you can see, some lines have two items: util-linux util-linux-ng. The first is the package name, the other is what it provides:
[karol@black ~]$ pacman -Qi util-linux | grep Provides
Provides : linux32 util-linux-ng=2.20.1If you want to feed the dependency list to a scripts e.g. https://wiki.archlinux.org/index.php/Pa … base_group you may need to remove the second column with
cut -d ' ' -f 1Edit: You can also check expac https://bbs.archlinux.org/viewtopic.php?id=109358 - it can print other package info too, not only dependencies.
Last edited by karol (2011-11-17 16:19:35)
Offline
Ah! Thank you! ![]()
Offline
Please remember to mark the thread as solved.
Offline
Pages: 1