One of the great things about OpenSolaris is that the archaic packaging tools have been replaced with something that looks like it may be a little better; one of the disadvantages is that trying to install packages from something like OpenCSW is a little awkward when the first command fails.
Given that I’ve just to hunt around for the details a second time, it is worth working up the basics into something that can be added here. Firstly we need to install the commands necessary to support the old packages :-
pkg install SUNWpkgcmds pkg install SUNWwget
Now that has been done, it should be possible to install the OpenCSW package command using pkgadd :-
pkgadd -d http://www.opencsw.org/pkg_get.pkg