Solaris: list installed packages with pkginfo

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: Solaris system administration  

The pkginfo command in Solaris is capable of providing detailed information about the packages installed on a system. This recipe describes some of its uses in listing numerous packages.


To list all packages installed on a Solaris system, use:

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. For example:

pkginfo | grep SUNWsndmu
pkginfo | grep -i sendmail

The latter example uses the -i switch to make grep case insensitive, matching upper or lower case.

 

4 Comments -


  1. Rob Long said on October 6, 2009

    THANK YOU!!!

  2. Joe said on January 11, 2011

    Thank you!

  3. Trainingv said on April 26, 2011

    thanks.

  4. Trainingv said on April 26, 2011

    thanks!

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -