Ben wrote:
> I'm installing some packages via a script and I want to know what the
> executables from the packages are called.
>
> For example, The GIMP is installed using "SUNWgnome-img-editor", but is
> run via the command "gimp". Similarly, OpenOffice.org is installed using
> "openoffice" and to run the app you use "openoffice.org3"
>
> Is there any way to find out what the executable is called? I can use
> trial and error and some intelligence, but a script can't so well...
>
> I have so far looked at "pkg contents" and "pkg info" but neither of
> these are much help.
Any package can deliver more than one executable. I'm not sure how you can
determine which of those is the "most important" in any sense. How are you
planning on using this information?
You can do something like
pkg contents -a path=*/bin/* <pkgname>
to see what it delivers into a bin directory, but in the case of gimp, that
gives you five things, and for openoffice, it gives you twelve (three if
you just look at /usr/bin).
Danek
_______________________________________________
install-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/install-discuss