How to find where a package is installed by pacman? - archlinux

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?

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

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

Related

Trying to uninstall JDK in Arch Linux

I'm trying to remove all the JDK's in my computer and only install the LTS version (JDK11).
When i run:
archlinux-java status
I get 3 environments (screenshot).
When i run pacman -Qe no JDK is listed, and when i run pacman -R openjdk14 the terminal returns "No package was found", but when i run java -version the OpenJDK-14 is listed (screenshot). How can i remove all the JDK's in my arch system?
Use pacman -Q | grep jre to find the names of the Java packages installed. The switch -e limits the output to explicit installed packages. In order to find everything you should'nt use any filters:
neon: ~ $ pacman -Qe | grep jre
neon: ~ $ pacman -Q | grep jre
jre-openjdk 14.0.2.u12-1
jre-openjdk-headless 14.0.2.u12-1
To remove a package use pacman -R <package name> or pacman -Rs <package name> if you want to remove unused dependencies as well.
Try the following command
sudo pacman -R jre14-openjdk

Installing janus-gateway error on CentOS7

I want to install janus-gateway on CentOS7.
I read the following document and tried installation.
https://github.com/meetecho/janus-gateway/blob/master/README.md
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/janus
However, configuring janus-gateway will cause an error. The error is as follows.
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JANUS... no
configure: error: Package requirements (
glib-2.0 >= 2.34
libconfig
nice
jansson >= 2.5
libssl >= 1.0.1
libcrypto
) were not met:
No package 'nice' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables JANUS_CFLAGS
and JANUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I installed libnice(libnice-0.1.3-4.el7.x86_64) in the following way.
yum install libnice
How can I solve it?
Thank you.
try this and rebuild
echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> ~/.bashrc
source ~/.bashrc
Disclaimer: I am using Ubuntu 18.04 when testing this.
If you are using Ubuntu system and trying to install Janus and running this code
./configure --prefix=/opt/janus
And then getting this error: No package 'nice' found
Make sure you have been installation of the nice from aptitude.
sudo install aptitude
aptitude install libmicrohttpd-dev libjansson-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \
libconfig-dev pkg-config gengetopt libtool automake
For some reason installation of nice using the answer from Frank, Ahmet or Zallfire doesn't work in Ubuntu. It has to be installed using aptitude.
You should download libnice source code to install.
https://gitlab.freedesktop.org/libnice/libnice
You need the development libnice.
yum install libnice-devel

Installing cminpack package in Msys2

I have Portable Msys2.
I mean to install cminpack.
As I understand, https://aur.archlinux.org/packages/mingw-w64-cminpack/ means such package is available. I expected then that the package shows up in the list of available packages, but
$ pacman -Ss minpack
gave no results.
Did I infer correctly that the package should show up as available in this list?
I also tried
$ pacman -Qs minpack
which gave no results.
(As I understand, any package listed in pacman -Qs should also be listed in pacman -Ss, so it was useless at this point).
Having concluded that a package being listed in this search list possibly does not imply it is available for msys2, I checked
$ pacman -Ss <pkg>
for a few other packages in that list. Some effectively gave no results.
Thus the question
How can I be certain if a package is available for msys2?
(If and when I am sure about that, I guess pacman -S <pkg> would install it).
See also this.
I think you got mixed between msys2 pacman and arch linux pacman. What you have linked is an AUR repository for arch linux, not MSYS2. The utility used pacman is taken over from arch linux, but that is all.
To search package for a packages within your repositories you really can use pacman -Ss <package_name>. If you can't find your package that means that within the installed repositories there is no such package.
If you can't find it you can always check the web: search within msys2 packages. If that is not enough you can do that search within all generated package MSYS2 history: packages at msys2 repositories.
I have check the repositories for your mingw-w64-cminpack package and that is not available for msys2. You would have to cross-compile it yourself.

Cannot find glib-gettext. in msys2

I am running an autogen.sh script under MSYS 2.
I installed all requested packages so far, but
checking for glib-gettext >= 2.2.0...
testing glib-gettextize... not found.
I don't get.
A package named glib-getext doesn't exist.
I run:
pacman -S glib2
but without success.
I also run:
$ pacman -S gettext
in hope that would solve my problem, but it doesn't.
What should I do with glib-gettext?
The solution is
pacman -S glib2-devel

Download mono-complete and install it on another new machine

I Downloaded mono-complete 3.10 by adding following repository and signing key in synaptic. After Downloading mono-complete-3.10, I installed this package in another fresh machine, but in fresh machine it gives lot of errors. Please suggest me how to install this downloaded package on another machine (offline).
Repo:
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.10.0 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
Signing Key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
I see different versions of ubuntu in your tags.On what version of ubuntu you are installing your mono? Did you fully read this article?
Why don't you just use smth like apt-get install mono-complete monodevelop e.g.?