How to find out why a AUR package was installed?

Hi,

what is the best way to find out why a package from AUR was installed? I only have the information if it was explicitly installed or as a dependency from another. but which other package was ist?

with “pactree PACKAGENAME” I just see the directions which packages are needed. I would need the other way round.

Thanks!

You can try pactree -r PACKAGENAME to see that. But it only works if it still depends on it.

1 Like

You can try finding that context in /var/log/pacman.log:

  • search for package name, the first occurrence should be when you had it installed
  • read around for the associated context
vi +$(grep -n -m1 <package_name> /var/log/pacman.log | cut -d: -f1) /var/log/pacman.log

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.