63

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?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
pgplus1628
  • 1,294
  • 1
  • 16
  • 22
  • Do you think the list of installed files? Or do you want list of files *before* install? – uzsolt Mar 27 '14 at 11:39
  • @uzsolt the list of installed files and the paths of those files installed in my file system. Such as, the boost-libs may be installed under `/usr/libs/` and other paths. – pgplus1628 Mar 27 '14 at 12:41

3 Answers3

70

I am not on my arch now to check, but I bet pacman -Ql boost-libs or pacman -Qk boost-libs will do the trick by providing you with the list of files installed by the package.

arbulgazar
  • 1,931
  • 1
  • 19
  • 24
  • Isn't `pacman -Ql` from the answer below the only thing that answers OP's question? –  Apr 03 '21 at 10:11
  • 1
    @ArturTagisow did you look at the dates? this question was from 2014, the post below was posted in 2017 (3 years after the OP posted the question) and edited again in 2020. yes the answer below has a better answer at this time but I would say he is pretty late to the party. the OP probably forgot about this question. – SleepyCatGuy Apr 05 '21 at 03:56
40
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
w1100n
  • 1,460
  • 2
  • 17
  • 24
3

As of today, in pacman v6.0, the command is slightly changed: pacman -Fl package-name rather than pacman -Ql package-name

Liang Zhou
  • 2,055
  • 19
  • 20