On Tue, Aug 25, 2009 at 07:20:41PM -0700, Alan Coopersmith wrote:
> [email protected] wrote:
> > This one is a bit tough, since there isn't a SysV packaging command to
> > find the package that a file belongs to.
> 
> "pkgchk -l -p /usr/bin/ls" - only works on exact paths, not patterns though.

Thanks Alan.  I forgot about pkgchk.

On jurassic, I get a ptime of the following for that command:

real        2.437435597
user        0.474447459
sys         0.374507290

That is still faster than pkg search, but not by 12x.

It looks like there's some amount of scaling depending upon how many
packages are installed.  On my system, which has no SysV packages, the
command only too .04 seconds of real time to complete.

-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to