@YeeP said in looking for packages that depend on a specific package:
I am trying to find what on my machine uses the package called “conan”.
It’s not an answer to your question yet: To get the full list of all packages, on which a specific package depends on (requires, or descending dependencies), use the command:
The answer to your question is: To get the full list of all packages, which depend on a specific package (required by, or ascending dependencies), use the command:
pactree --reverse [pkgname]
Pactree is one of a half-a-dozen of extremely useful pacman helpers. Helpers are installed by default along with pacman, are always available, don’t require a separate installation.
Pamac, octopi and similar graphical frontends don’t list AUR packages dependencies. Pactree does list them. Conan is an AUR package.
A packages tree, returned by direct pactree [pkgname] command, is usually rather big.
A reversed tree, returned by pactree --reverse [pkgname] command, may be long, short, or be absent at all. It depends on how the package, being investigated on, was installed. If the command returns nothing - i.e., returns an empty reversed tree - it means that an AUR package was installed by hand. The package is not required by other system packages.
In your case, pactree conan will return a long tree. Conan package requires many other packages.
On the other hand, pactree --reverse conan will most probably return nothing. It was probably installed by hand, by you, not as a dependency of any other package(s).