To determine the version number for an installed package on Solaris, the
pkginfo
command can be used. If I wanted to check
the version number for the Apache Portable Runtime Libraries utilities
package, apr-util, I could issue the
pkginfo
command with no options and grep for apr
to determine the package name.
# pkginfo | grep apr application SMCapr apr application SMCapru aprutil
I can then check the version number using the command
pkginfo -l SMCapru
:
# pkginfo -l SMCapru PKGINST: SMCapru NAME: aprutil CATEGORY: application ARCH: sparc VERSION: 1.2.2 BASEDIR: /usr/local VENDOR: Apache Software Foundation PSTAMP: Steve Christensen INSTDATE: Jun 25 2009 17:11 EMAIL: steve@smc.vnet.net STATUS: completely installed FILES: 49 installed pathnames 12 shared pathnames 8 directories 3 executables 5750 blocks used (approx)
The version number listed is 1.2.2