Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how find 1 file in all my RPMs ?

Status
Not open for further replies.

haux

Programmer
Apr 11, 2001
79
DZ
find file inside RPMs

when i want to find an rpm who contain the string 'ppp', i have to tape

rpm -qa | grep ppp

but how to search a file 'yyy' inside all my RPMs ?

i have redhat6.2 +kernel 2.2.14-5.0 + bash
 
The following will list all files within all rpms if the filename contains 'yyy'....

# rpm qal|grep yyy

However to find out which rpm a result file belongs to you'd have to do...

# rpm -qf <filename>

Good Luck
--
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top