I have to list all dependencies of 71 packages. I planned to write a bash using this with a for loop but I got this message:

pactree : command not found

I have updated pacman but pactree still doesn't work. I searched in the arch repo and aur but both don't have pactree. What should I do to use pactree or at least list all dependencies?

  • I tried this ( $ expac -l '\n' %E -S [packages] | sort -u ) as the arch wiki suggested, but got the same error as pactree – Du Brisingr Arget Sep 17 '18 at 13:03

pactree is in the pacman-contrib package now, not the pacman package. expac is in an expac package.

Not the answer you're looking for? Browse other questions tagged or ask your own question.