TWiki> DICE Web>MPUSolarisPackageFolklore (revision 1)EditAttach

Solaris Packages

Some commands to help you get package information on Solaris. These are rough equivalents of the rpm commands that I use every day on Linux. Please fill in holes if you can, and if you know better commands please share them with me!

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?    

Note that Solaris packages are not quite equivalent to RPMs as Solaris also has the concepts of clusters and metaclusters. A cluster is a bundle of packages. A metacluster is a bundle of clusters and packages. Clusters and metaclusters are defined (by Sun) 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

Edit | Attach | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 17 Jan 2007 - 09:38:12 - ChrisCooke
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies