Re: Kernel Sources

From: Kevin Nathan (knathan_at_project54.com)
Date: 07/20/04


Date: Mon, 19 Jul 2004 23:51:02 -0600

On Mon, 19 Jul 2004 23:23:34 +0100
Brian <nospam@my-local.net> wrote:

> Compare:
> $ rpm -qf /bin/ping
> iputils-ss020927-45
>
> with:
> $ pin ping
> pin 0.27 - package info for ping
>
> ----------------------------------------------------------------
> *** no rpm named ping installed
> ----------------------------------------------------------------
>
> [even more verbosity snipped]
>
> And finally it ends, at line 2422.
> (lines deliberately truncated for an easier post)
>
> I only wanted to know which rpm 'ping' came from!
>

But the rpm command won't help if the command is *not* installed; that's
where 'pin' comes in handy. To eliminate all those extra lines, why not
use the same search criteria that you used with the rpm command above?

   pin /bin/ping

On 8.2 this gives me 16 lines, showing two rpm packages containing four
different ping commands. If you're not sure if the command is in a /bin
or an /sbin dir, then drop the leading slash:

   pin bin/ping

> Yes, pin can be useful to find out where such-and-such might live in
> the SuSE distribution but I stil prefer rpm for querying rpm.

And you should -- if you *know* the package is installed, or are pretty
sure it *should* be, then rpm command makes the most sense. 'pin' makes
more sense when the command is not installed . . . :-)

-- 
Kevin Nathan (Montana, USA)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.4.20-4GB-athlon
 11:41pm  up 1 day  6:33,  6 users,  load average: 0.16, 0.20, 0.16


Relevant Pages

  • Re: Kernel Sources
    ... > where 'pin' comes in handy. ... But I was querying rpm about an installed binary. ... If you're not sure if the command is in a /bin ...
    (alt.os.linux.suse)
  • Re: Missing items in XP
    ... ISP asked me to ping a site and ping was not recognized as a command. ... Isp man told me I had lost essential tools in XP. ... You can confirm this by opening a command prompt, changing to the windows\system32 directory, and running commands such as ping. ... Do I need those user variables? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: .bat file for "keep open ping" not working after WinXPsp2 clea
    ... with simply pasting your suggested ping to google in the command line again ... I don't know why it changed my ping from www.google.com to www.1.google.com ... If you do not get a response then there is something wrong ... This has nothing at all to do with the batch file. ...
    (microsoft.public.windowsxp.general)
  • RE: DNS Issues after setting up a WAN?
    ... We did the following on a PC on the remote side with IP Address 192.168.1.11. ... Without DNS suffix ... Command: ping rs-svr1.ruclaservices.local ...
    (RedHat)
  • Re: Missing items in XP
    ... and ping was not recognized as a command. ... Isp man told ... You can confirm this by opening a command prompt, ... Do I need those user variables? ...
    (microsoft.public.windowsxp.help_and_support)