Solaris lsof installation

The Oracle Solaris 10 and 11 OS installation or the FOSS does not include the lsof package. This had to be installed from a 3rd party like opencsw.org
Source: https://www.opencsw.org/package/lsof/

root@solaris:/root# pkgadd -d http://get.opencsw.org/now

## Downloading...
..............25%..............50%..............75%..............100%
## Download Complete

The following packages are available:
  1  CSWpkgutil     pkgutil - Installs Solaris packages easily
                    (all) 2.6.7,REV=2014.10.16

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <CSWpkgutil> from <http://get.opencsw.org/now>

pkgutil - Installs Solaris packages easily(all) 2.6.7,REV=2014.10.16
Please see /opt/csw/share/doc/pkgutil/license for license information.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <CSWpkgutil> [y,n,?] y

Installing pkgutil - Installs Solaris packages easily as <CSWpkgutil>

## Installing part 1 of 1.
/etc/opt/csw/pkgutil.conf.CSW
/etc/opt/csw <implied directory>
/opt/csw/bin/pkgutil
/opt/csw <implied directory>
/opt/csw/bin <implied directory>
/opt/csw/etc/pkgutil.conf.CSW
/opt/csw/etc <implied directory>
/opt/csw/libexec/pkgutil/wget-i386
/opt/csw/libexec/pkgutil/wget-sparc
/opt/csw/share/doc/pkgutil/license
/opt/csw/share/doc/pkgutil/readme
/opt/csw/share/man/man1/pkgutil.1
/opt/csw/var/pkgutil/admin.CSW
[ verifying class <none> ]
## Executing postinstall script.

Copying sample pkgutil.conf to /opt/csw/etc.
Copying sample pkgutil.conf to /etc/opt/csw.
Copying sample admin from /opt/csw/var/pkgutil to /var/opt/csw/pkgutil.

NOTE!
NOTE! Make sure to check out any changes in /etc/opt/csw/pkgutil.conf.CSW.
NOTE!

Installation of <CSWpkgutil> was successful.

root@solaris:/root# /opt/csw/bin/pkgutil -U
=> Fetching new catalog and descriptions (http://mirror.opencsw.org/opencsw/testing/i386/5.11) if available ...
==> 4008 packages loaded from /var/opt/csw/pkgutil/catalog.mirror.opencsw.org_opencsw_testing_i386_5.11

root@solaris:/root# /opt/csw/bin/pkgutil -y -i lsof
Solving needed dependencies ...
Solving dependency order ...
Install 3 NEW packages:
        CSWcommon-1.5,REV=2010.12.11 (opencsw/testing)
        CSWisaexec-0.2,REV=2009.03.26 (opencsw/testing)
        CSWlsof-4.88,REV=2015.02.18 (opencsw/testing)
Total size: 268.6 KB
=> Fetching CSWisaexec-0.2,REV=2009.03.26 (1/3) ...
=> Fetching CSWcommon-1.5,REV=2010.12.11 (2/3) ...
=> Fetching CSWlsof-4.88,REV=2015.02.18 (3/3) ...

=> Installing CSWisaexec-0.2,REV=2009.03.26 (1/3) ...
This interesting packaging hack is copyrighted by Philip Brown,
phil@bolthole.com
You may copy, install, and otherwise redistribute this package as you like,
without having to pay any fee, so long as it remain unchanged, and this notice
remain intact as the copyright notice.
Copying /usr/lib/isaexec to /opt/csw/bin/isaexec

Installation of <CSWisaexec> was successful.

=> Installing CSWcommon-1.5,REV=2010.12.11 (2/3) ...

Installation of <CSWcommon> was successful.

=> Installing CSWlsof-4.88,REV=2015.02.18 (3/3) ...
Please see /opt/csw/share/doc/lsof/license for license information.

Installation of <CSWlsof> was successful.

 

root@solaris:/root# /opt/csw/bin/lsof -v
lsof version information:
    revision: 4.88
    latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
    latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
    latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
    configuration info: 64 bit kernel
    constructed: Wed Feb 18 14:08:37 CET 2015
    constructed on: unstable11x
    compiler: /opt/solarisstudio12.3/bin/cc
    compiler version: Sun C 5.12 SunOS_i386 Patch 148918-01 2012/05/08
    compiler flags: -xO3 -m64 -xarch=sse2 -DHASPR_LDT -m64 -DHASIPv6 -DHASSOUXSOUA -DHAS_IPCLASSIFIER_H -DHAS_CONN_NEW -DHAS_CRED_IMPL_H -DHAS_V_PATH -DHAS_PC_DIRENTPERSEC -DHASZONES -DHAS_ZFS -I/home/dam/mgar/pkg/lsof/trunk/work/solaris11-i386/build-isa-amd64/lsof_4.88/lsof_4.88_src/solaris11 -DHAS_PAD_MUTEX -DHAS_LIBCTF -Dsolaris=110000 -DHASUTMPX -DHAS_VSOCK -DHAS_STRFTIME -DLSOF_VSTR="5.11" -O
    loader flags: -L./lib -llsof  -lctf -lkvm -lelf -lsocket -lnsl
    system info: SunOS unstable11x 5.11 11.0 i86pc i386 i86pc
    Anyone can list all files.
    /dev warnings are enabled.
    Kernel ID check is enabled.
    Device cache file read-only paths:
        Named via -D: none
        Named in environment variable LSOFDEVCACHE: none
        Personal path format (HASPERSDC): "%h/%p.lsof_%L"
        Modified personal path environment variable: LSOFPERSDCPATH
        LSOFPERSDCPATH value: none
        Personal path: /root/.lsof_solaris
    Device cache file write paths:
        Named via -D: none
        Named in environment variable LSOFDEVCACHE: none
        Personal path format (HASPERSDC): "%h/%p.lsof_%L"
        Modified personal path environment variable: LSOFPERSDCPATH
        LSOFPERSDCPATH value: none
        Personal path: /root/.lsof_solaris