How to query the package owning the file? (no packahe manger installed)

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



> To find the package that owns a particular file that is installed on
> your system, you would do:
> 
> rpm -q --whatprovides /full/path/to/file
> 
> for example, on CentOS-4 if I do:
> 
> rpm -q --whatprovides /bin/bash
> 
> I get this as an answer:
> 
> bash-3.0-19.2

rpm -qf /path/to/file

will give you the same results

-Jay

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux