archlinuxpackage-managementpacman-package-manager

How to find where a package is installed by pacman?


I'm installing c++ boost library by pacman -Ss boost-libs. After installation, I want to know where my package is installed in my system.

Is there any pacman command for doing so?


Solution

  • pacman with the -Q flag, can display the installed location of the package. See pacman -Q --help for the respective suboptions of -Q flag.

    The -Q flag is used to search for already installed packages.
    The -F flag is used to search for remote packages. (as Liang Zhou mentioned)

    pacman -Qh # Print help info
    pacman -Q  boost-libs    # Display version
    pacman -Ql boost-libs    # Display file list provided by local package
    pacman -Qk boost-libs    # Check the local package database
    pacman -Qo /path/to/file # Check if the file is owned by any package