[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Which package has the file xxx ?



On Fri, 29 Jun 2001, LinuxKH wrote:

>
> Hi all,
>
> How to find the name of the package which has the file x ?
>
> Example: The 'su' file belongs to which package ?
>
> `man rpm` doesn't help me. :-( Help !

There are ways, and then there are ways...
(Which means you are probably getting a number of differnt and perfectly
valid answers)

I generally either locate the file or use which (to get the full path)

# which ping
/bin/ping

Then I ask rpm where it came from:

# rpm --redhatprovides /bin/ping
iputils-20001110-1

-- 
Chris Kloiber, RHCE
Enterprise Support - Red Hat, Inc.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]