Solaris: List Detailed Package Information with pkginfo

The pkginfo command lists information about one or more packages installed on a Solaris system. It has a verbose setting to display detailed information about a package which includes the software version number, the number of files and space occupied on disk, and the date of install.


To show detailed information about a patch, invoke pkginfo with the -l (lower case L) switch:

pkginfo -l SUNWapchr
PKGINST: SUNWapchr
NAME: Apache Web Server (root)
CATEGORY: system
ARCH: sparc
VERSION: 11.8.0,REV=2000.01.08.18.12
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: The Apache HTTP server program (root components)
PSTAMP: on28-patch20010802135728
INSTDATE: Oct 26 2001 18:17
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 166 installed pathnames
8 shared pathnames
5 linked files
17 directories
3 executables
407 blocks used (approx)

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

  • Anonymous

    The way to find out the binaries/libraries and everything else that you would need to know try:

    # pkgchk -l SUNWapchr ; Detailed info

    But I personally prefer:
    # pkgchk -l SUNWapchr | grep -i pathname ; List of specific files

    Good post overall otherwise I wouldnt have been inclined to expand on it!

    Keep up the good work!

    ~~ Merry Christmas and Seasonal Greetings! ~~

  • Arun

    Thanks.. It worked..