What files are installed by this Solaris package?
In my previous post I gave an example of how to find a Solaris package that installed a specific file. In this article I give an example of how to find a list of all files installed by a specific package.
Whilst the pkginfo
command is useful in Solaris to give a detailed listing of a package, the number of files installed, directories, etc. One thing lacking is that it does not provide a list of the files installed. For example:
# 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)
In the above example, pkginfo
informs is that 166 files installed in 17 different directories. But what I really want to see are the actual files/directories installed.
For this, we need to use the pkgchk
command to list the contents of the package. For example:
# pkgchk -l SUNWapchr | egrep "(Pathname|Type)" Pathname: /etc Type: directory Pathname: /etc/apache Type: directory Pathname: /etc/apache/README.Solaris Type: regular file Pathname: /etc/apache/httpd.conf-example Type: regular file Pathname: /etc/apache/ssl.crl Type: directory Pathname: /etc/apache/ssl.crl/Makefile Type: regular file Pathname: /etc/apache/ssl.crl/README.CRL Type: regular file [...]