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?
Pacman's settings are located in /etc/pacman.
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.
Try this: isPackageInstalled() { pacman -Qi "$packageName" &> /dev/null echo $? }
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With