Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 852
pgplus1628 Avatar asked Mar 27 '14 08:03

pgplus1628


People also ask

Where are pacman package installed?

Pacman's settings are located in /etc/pacman.

How do I find where a package is installed?

The dpkg-query command can be used to show if a specific package is installed in your system. To do it, run dpkg-query followed by the -l flag and the name of the package you want information about.

How do you check if a package is installed using pacman?

Try this: isPackageInstalled() { pacman -Qi "$packageName" &> /dev/null echo $? }


2 Answers

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.

like image 184
arbulgazar Avatar answered Sep 27 '22 18:09

arbulgazar


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 
like image 45
w1100n Avatar answered Sep 27 '22 20:09

w1100n