LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Andreja Zivkovic <andy@zt.zivkotech.net.au>
  To  : Earnshaw, Mike" <earnshawm@wa.switch.aust.com>, "LinuxSA (E-mail)" <linuxsa@linuxsa.org.au>, "PLUG (E-mail) <earnshawm@wa.switch.aust.com>
  Date: Fri, 9 Jun 2000 16:41:11 +0930

RE: Which RPM?

other usual places for programs to exist is /usr/bin and /usr/sbin

Also, if there's a program that you can run, but don't know the path of,
type 'which <program>'. That'll tell you the path and filename of the
program you just selected. if you use the backquote (? the one under tidle
(~)) you can use it's output directly in rpm. eg

rpm -qf `which patch`

will tell you which package the executable patch came from.

Good luck
Andy

> -----Original Message-----
> From: Earnshaw, Mike [mailto:earnshawm@wa.switch.aust.com]
> Sent: Friday, 9 June 2000 4:18 PM
> To: LinuxSA (E-mail); PLUG (E-mail)
> Subject: Which RPM?
>
>
> Lists,
>
> Trying to find which RPM contains a file. Normally I would use:
>
> rpm -qf <looking for> i.e. /bin/pwd
>
> 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
>
> Any clues please? Thanks
>
> ------------------------------------------------------------------------
> ----
> Mike Earnshaw       | "It don't mean a thing if     | e-mail in header
> Computer Systems    | you cain't get that Ping...." | Tel: +61 8 9256
> 1099
>   Support           |    Duke Ellington, 1932       | Fax: +61 8 9256
> 1199
> ------------------------------------------------------------------------
> ----
> Union Switch & Signal, 24 Bannick Court, Canning Vale, WA 6155,
> Australia
> ------------------------------------------------------------------------
> ----
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
>   mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page