You are not logged in.

#1 2008-01-31 12:45:53

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Is there a way do find out to which package a file belongs?

If pacman tries to install a package it is normally aware of files beeing already installed and puts out an error message. Is it possible to encounter to which package a file belongs, t.m. which package did install it?

Offline

#2 2008-01-31 12:52:00

Jessehk
Member
From: Toronto, Ontario, Canada
Registered: 2007-01-16
Posts: 152

Re: Is there a way do find out to which package a file belongs?

pacman -Qo <file>

For example,

$ pacman -Qo /usr/bin/python
/usr/bin/python2.5 is owned by python 2.5.1-5

It's all in the manpage for pacman. smile

Offline

#3 2008-01-31 12:52:01

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Is there a way do find out to which package a file belongs?

pacman -Qo <full path to file>

Edit: beaten by 1 second! sad

Last edited by Allan (2008-01-31 12:52:33)

Offline

#4 2008-01-31 13:56:36

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Re: Is there a way do find out to which package a file belongs?

Thank you all!

Offline

Board footer

Powered by FluxBB