This question already has an answer here:
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?