Solaris pkg-get

The Solaris pkg-get utility simplifies retrieval and installation of Solaris packages from repositories such as Sunfreeware. The tool is similar to Debian's apt-get, although pkg-get repositories have to be configured to support dependencies. The Community Software Packages site at opencsw.org supports dependencies; Sunfreeware does not.

Homepage:
http://www.bolthole.com/solaris/pkg-get.html

Download:
http://www.opencsw.org/pkg-get

pkg-get configuration

First, copy pkg-get's configuration file from /opt/csw/etc.

# cp /opt/csw/etc/pkg-get.conf /etc


I prefer to use the Sunfreeware repository instead of the default CSW repository, so I make the following change in /etc/pkg-get.conf:

From:
# default site, in USA:
url=
http://ibiblio.org/pub/packages/solaris/opencsw/current/

To:
# default site, in USA:
url=ftp://mirrors.secsup.org/pub/solaris/freeware/

A list of Sunfreeware mirrors is available here.

pkg-get commands

Update list of available packages (retrieve latest list):
pkg-get -U

List available packages (uses last downloaded copy):
pkg-get -a

Download (do not install) package:
pkg-get -d package

Download and install package:
pkg-get -i package

Upgrade package:
pkg-get -u package

Upgrade all installed packages:
pkg-get -u

Note: if multiple versions of a package are available, specify the version number with a hyphen.

Example:

$ pkg-get -a | grep lsof
                lsof            4.33
                lsof            4.68

# pkg-get install lsof-4.68

Back to brandonhutchinson.com.
Last modified: 2008/10/31