You are not logged in.

#1 2011-11-17 12:17:29

geckos
Member
Registered: 2010-12-02
Posts: 20

[SOLVED]How to know what uninstalled packge owns a file?

When I want to know what package owns X file i do pacman -Qo X, but for this the file need to exist.

When I face a libXYZ.so: No such file or directory, how can I know what package provides that file? I was search for something like pacman -So libXYZ.so, or something..


[]'s

Last edited by geckos (2011-11-18 12:18:40)

Offline

#2 2011-11-17 12:27:31

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED]How to know what uninstalled packge owns a file?

i dont think you can.

if a package you installed is complaining on a missing library, this is a missing dependeny not listed in its PKGBUILD, file a bug where appropiate. (aka, package belongs to the repos: file a bug in flyspray, AUR? write a comment in the appropiate aur page).

if you are trying to build your own software. you should read the instructions on how to compile this project and find out how said library is packaged in arch. (pacman -Ss name-of-library)

Offline

#3 2011-11-17 12:28:26

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: [SOLVED]How to know what uninstalled packge owns a file?

Install pkgtools and then run

pkgfile libXYZ.so

Offline

#4 2011-11-17 12:43:21

geckos
Member
Registered: 2010-12-02
Posts: 20

Re: [SOLVED]How to know what uninstalled packge owns a file?

eldragon wrote:

i dont think you can.

if a package you installed is complaining on a missing library, this is a missing dependeny not listed in its PKGBUILD, file a bug where appropiate. (aka, package belongs to the repos: file a bug in flyspray, AUR? write a comment in the appropiate aur page).

if you are trying to build your own software. you should read the instructions on how to compile this project and find out how said library is packaged in arch. (pacman -Ss name-of-library)


I don't thinks is pacman fault, I have done stupid things with pacman smile
Any way, this ugly shell chain have done the job

pacman -Qk zsnes
pacman -Qi zsnes | grep Depends | cut -f2 -d: | tr -s ' ' | tr -s ' ' '\n' | while read P; do pacman -Qi $P >> installed && pacman -Qk $P >> missing; done

I THINK that missing packages and missing files will be printed out. Any way I can check installed and missing files for some weird thigs that happends when you to break your system smile. We can do this recursivelly, but I don't this is necessary in my case.

Offline

#5 2011-11-17 14:24:56

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]How to know what uninstalled packge owns a file?

I think you're overcomplicating the issue tremendously:

pacman -Qkq

The above will show all missing files. Run this as root -- as you will otherwise get silent permission denied error on reading and they'll show up as missing.

Offline

#6 2011-11-17 19:57:00

geckos
Member
Registered: 2010-12-02
Posts: 20

Re: [SOLVED]How to know what uninstalled packge owns a file?

falconindy wrote:

I think you're overcomplicating the issue tremendously:

pacman -Qkq

The above will show all missing files. Run this as root -- as you will otherwise get silent permission denied error on reading and they'll show up as missing.

So simple smile, thanks!

Offline

#7 2011-11-17 21:03:56

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED]How to know what uninstalled packge owns a file?

Please mark as solved.

Offline

Board footer

Powered by FluxBB