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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search for RPMs from command line

Status
Not open for further replies.

hcclnoodles

IS-IT--Management
Jun 3, 2004
123
GB
Hi

I have 2 questions

1) how do i search for rpm's that are installed, ie i need to find the PHP rpm that is installed (im using RH9)

2) How do i install files that end with .src.rpm ? I understand these are source rpms that need to be compiled but i cant figure out how i turn them into normal rpms

any hep on this would be greatly appreciated
 
You can do an 'rpm -qa' to get a list of all installed rpm's. You can then filter that through grep to look for specific things, e.g. 'rpm -qa | grep -i php'.

I'm not sure about src rpm's, I've never used them.
 
rpmbuild --rebuild your.src.rpm

On redhat/fedora this requires the rpmbuild rpm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top