On Wed, Dec 17, 2008 at 06:13:49PM -0800, [email protected] wrote:
> > What's the best incantation/shell fragment/API to use to get a list of
> > all the packages that a particular package depends upon?
>
> pkg contents -o action.raw -r -t depend <pkgname>
And if you want to pare it down a bit more,
pkg contents -o fmri -t depend [-r] <pkgname>
You can do
pkg contents -o type,fmri -t depend [-r] <pkgname> | \
nawk '$1 == "require" {print $2}'
to be more specific -- there's no way to do that with just the pkg command.
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss