You are not logged in.

#1 2014-02-02 08:32:38

doubleslash
Member
Registered: 2011-08-16
Posts: 80

How to find package owning a certain file?

Hi,
I'm trying to download a source code from git and got the following error message

gpg: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory

Clearly it's not able to find the file  "libgcrypt.so.20", so my logic is to find a pacakge that provides that and install it. I tried using the archlinux package database and search for it by keyword but got nothing. Any ideas how I can proceed to fix this problem?
Thanks in advance

Offline

#2 2014-02-02 08:41:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How to find package owning a certain file?

[Shiv ~ ]
pacman -Qo /usr/lib/libgcrypt.so.20
/usr/lib/libgcrypt.so.20 is owned by libgcrypt 1.6.1-1
man pacman

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-02-02 08:44:57

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to find package owning a certain file?

There's also a tool called pkgfile which is more powerful than `pacman -Qo`. Look it up.
In this case, the package is (surprise!) libgcrypt. Sh*t broke probably because you did a partial update/install of some packages, which is generally not recommended. Do `pacman -Syu` often.

Edit: or... if the .so didn't really get bumped recently, it could mean some other weird problem.

Last edited by lolilolicon (2014-02-02 08:46:34)


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB