Solaris: List Installed Packages with pkginfo
Posted by Quinn McHenry in Solaris system administration
The pkginfo command in Solaris is capable of providing detailed information about the packages installed on a system. This tech-recipe describes some of its uses in listing numerous packages.
To list all packages installed on a Solaris system, use the following:
pkginfo
system SUNWsndmu Sendmail user
system SUNWsolnm Solaris Naming Enabler
system SUNWsprot Solaris Bundled tools
...
The output lists the category, the package name (like SUNWsprot), and a human readable name (Solaris Bundled Tools). The default categories are system and application, although additional categories can be used when making packages to simplify package management. To limit the categories displayed when listing packages, use the -c switch:
pkginfo -c application
The output of pkginfo will generally display pages of output, so it is convenient to pipe its output to more. When looking for a specific package, use pkgadd with the grep command to search for the name of the package or a part of its human readable name. Note the example below:
pkginfo | grep SUNWsndmu
pkginfo | grep -i sendmail
The latter example uses the -i switch to make grep case insensitive, matching upper or lower case.
About Quinn McHenry
View more articles by Quinn McHenry
The Conversation
Follow the reactions below and share your own thoughts.






October 06, 2009 at 3:43 pm, Rob Long said:
THANK YOU!!!
January 11, 2011 at 10:03 pm, Joe said:
Thank you!
April 26, 2011 at 7:15 pm, Trainingv said:
thanks.
April 26, 2011 at 7:34 pm, Trainingv said:
thanks!
February 27, 2012 at 3:53 pm, basma said:
thanks a lot for the great effort but would you please tell me what command should i use to list the UN-installed packages in cdrom ?? thanks in advance
October 31, 2012 at 12:38 pm, Shakeel said:
Can you please help me to get the following Output using the pkginfo or any other command.
Name: Application Name
Summary: Application Summary
Install Date: Date of Installation
Package State: Package Status (Committed)
### SEPERATOR ######
Name: Application Name
Summary: Application Summary
Install Date: Date of Installation
Package State: Package Status (Committed)
### SEPERATOR ######
……
Please note that I need SEPERATOR after every package information and other thing is I need different Label in front of Attribute Value.
Package State: Package Status (Committed) instead of State: Package Status (Committed)
Notice I have used Package State instead of State.
Regards,
Shakeel