[plug] Which RPM?

Peter Wright pete at cygnus.uwa.edu.au
Fri Jun 9 15:17:32 WST 2000


On Fri, Jun 09, 2000 at 02:47:55PM +0800, Earnshaw, Mike wrote:
> Lists,
> 
> Trying to find which RPM contains a file. Normally I would use:
> 
> rpm -qf <looking for> i.e. /bin/pwd

There is a way of doing it like that, I'm sure, but I don't know it
offhand for RH systems. 

> I am trying to find the rpm that contains the "patch" command but I
> can't seem to get it to work as I don't know where patch would live.
> I have tried /bin/patch and /sbin/patch

I tried the following on a Redhat 6.0 system:


peterw at fred [09/Jun 15:11:37] ttypts/2 !4 ~ $ rpm -a -q | grep patch
patch-2.5-8
peterw at fred [09/Jun 15:11:45] ttypts/2 !5 ~ $ whereis patch
patch: /usr/bin/patch /usr/man/man1/patch.1
peterw at fred [09/Jun 15:12:01] ttypts/2 !6 ~ $ 


So it looks like there is an rpm specifically for patch. Quickly
looking on everyone's favourite mirror, mirror.aarnet.edu.au, I found
it lurking in the RPMS directory:

http://mirror.aarnet.edu.au/pub/linux/redhat/redhat-6.0/i386/RedHat/RPMS/patch-2.5-8.i386.rpm

That's for RH6.0, but the url should be almost the same for 6.1 and
6.2, just change the 0 to 1 or 2 :).

> Any clues please? Thanks

hope that helps,

> Mike Earnshaw

Pete.
-- 
http://cygnus.uwa.edu.au/~pete/

--
hundred-and-one symptoms of being an internet addict:
88. Every single time you press the 'Get mail' button...it does get new mail.




More information about the plug mailing list