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

Re: Which package has the file xxx ?



On Friday 29 June 2001 04:16 am, 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 !

rpm -q(query)f(file) /full/path/to/file

[devon tuxfan devon]$ which su
/bin/su
[devon tuxfan devon]$ rpm -qf /bin/su
sh-utils-2.0-13

Hope that helps,

-D





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