How to find list of files installed by a package

“pkginfo” command can be useful in Solaris to give a detailed listing of a package including the details of number of installed files, pathnames, directories and executables as follows:


# pkginfo -l SUNWlibgcrypt
PKGINST:  SUNWlibgcrypt
NAME:  Libgcrypt – Cryptographic Library
CATEGORY:  EVO146,application,JDS3
ARCH:  sparc
VERSION:  1.1.12,REV=10.0.3.2004.12.15.17.57
BASEDIR:  /usr
VENDOR:  Sun Microsystems, Inc.
DESC:  Libgcrypt – Cryptographic Library
PSTAMP:  fire420041215175708
INSTDATE:  Sep 15 2008 12:08
HOTLINE:  Please contact your local service provider
STATUS:  completely installed
FILES:        6 installed pathnames
2 shared pathnames
2 directories
2 executables
595 blocks used (approx)

But, if you want to see what those files and directories are then “pkgchk” should be your toy. The following should show the list of files and pathnames installed by the package:

# pkgchk -l SUNWlibgcrypt|egrep “Pathname|Type”
Pathname: /usr/bin
Type: directory
Pathname: /usr/bin/libgcrypt-config
Type: regular file
Pathname: /usr/lib
Type: directory
Pathname: /usr/lib/libgcrypt.so
Type: symbolic link
Pathname: /usr/lib/libgcrypt.so.1
Type: symbolic link
Pathname: /usr/lib/libgcrypt.so.1.5.1
Type: regular file

2 thoughts on “How to find list of files installed by a package”

Leave a Comment

Your email address will not be published. Required fields are marked *