Linux | Purpose | Solaris | Notes |
---|---|---|---|
rpm -qa | List all the packages | pkginfo | |
rpm -qa | grep whatever | List all the whatever packages | pkginfo | grep whatever | |
rpm -q foo | Get the version number of an installed package | pkginfo -l foo | grep VERSION | |
rpm -qi foo | Get info about an installed package | ||
rpm -ql foo | List files in an installed package | pkgchk -l foo pkgchk -l foo | grep Pathname |
pkgchk -l gives far too much info. Even narrowing down to Pathnames still gives you the whole tree of directories in which each file is installed. |
rpm -qf /usr/bin/foo | Which package is this file in? |
/var/sadm/system/admin/.clustertoc
. A word of warning: clusters can come and go, and their contents can change, even if the OS version stays the same (when a patch is applied? when software is installed?). Furthermore, even if a cluster's list of constituent packages is changed, the cluster's version number may stay the same as it was before the change.
-- ChrisCooke - 17 Jan 2007