The Solaris equivalent of apt-get
is pkgutil
. It's an open source program (not from Oracle). It uses pkgadd
under the hood, and its main functionality is automatic dependency resolution and package fetching.
The libxml package is provided by OpenCSW. Here's how to install it on Solaris 10:
pkgadd -d http://www.opencsw.org/pkg_get.pkg
/opt/csw/bin/pkgutil -U -y -i libxml2_dev libxml2_2
The -U
flag will fetch the newest list of packages, the -y
flag will make installation skip any y/n confirmations, and -i
is equivalent to install
in apt-get. The pkgutil
utility will automatically fetch and install all dependencies.
After installation, the library will be in the /opt/csw/lib
directory and the C/C++ header files will be in /opt/csw/include
.