How can I get a list of all available dependencies?

I want to show only actual software excluding dependencies when using a script. For that I need a list of all available dependencies. Right now I’m thinking of making a file with dependencies manually because I can’t think of an alternative.

This should help.
https://man.archlinux.org/man/pactree.8