The best way by far that I have found for adding free software to use pkgutil.
The pkgutil program is a replacement for the pkg-get program which is a Solaris update program loosely based on apt-get.
It loads software as .pkg files which means that the normal Solaris commands
pkgadd, pkgrm, and pkginfo work with them the same as packages from Sun.
All files are loaded into /opt/csw (bin for the binaries).
The site http://www.opencsw.org/get-it/pkgutil/
has instructions for getting pkgutil set up.
Here is a critical excerpt from the page:
I have used it with Solaris versions 8, 9, and 10 and Solaris 10 x86. It works with some older versions of Solaris too.
To get started with Solaris 10 you can use the pkgadd command shown above. However you need a copy of wget to get started with Solaris 8 and 9. There are various places to get stand alone versions of wget on the web. To keep things simple, here is wget.sparc and wget.i386. Save the appropriate one to your machine and make them executable. After pkgutil is set up, you can use pkgutil -i wget to get a maintained copy of wget.
The pkg-get program has been replaced by pkgutil. That's all well and good, but what do I do now?
I found that running the following two commands to get rid of the old stuff and
then installing pkgutil as shown above worked for me.
pkgrm CSWpkgutil
pkgrm CSWpkgget
After reinstalling pkgutil, running
pkgutil -U
pkgutil -u
gets things up to snuff.
If you are in a corporate environment, you may have a proxy server between you and the Internet. pkg-util works with proxys and picks up the proxy information from your proxy environment variables:
If you are not behind a proxy, say you are setting this up at home, you can ignore the proxy server setup.
It is always a good idea to refresh the catalog before you do adds or updates.
pkgutil -U
The above command refreshes the catalog.
pkgutil -u
The above command brings all the CSW packages you have loaded up to date.
What you load is of course up to you and depends upon what you might want to do with the machine. Here are a few things I like to load.