Re: Kernel Sources
From: Kevin Nathan (knathan_at_project54.com)
Date: 07/20/04
- Next message: Kevin Nathan: "Re: Cron Problem"
- Previous message: me2_at_here.com: "Re: Re:Suse 9.1 and UDF"
- In reply to: Brian: "Re: Kernel Sources"
- Next in thread: Brian: "Re: Kernel Sources"
- Reply: Brian: "Re: Kernel Sources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Kevin Nathan: "Re: Cron Problem"
- Previous message: me2_at_here.com: "Re: Re:Suse 9.1 and UDF"
- In reply to: Brian: "Re: Kernel Sources"
- Next in thread: Brian: "Re: Kernel Sources"
- Reply: Brian: "Re: Kernel Sources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|