Solaris: list installed packages with pkginfo

Home -> UNIX -> Solaris -> System administration

23275 views

From the computer of: qmchenry (339 recipes)
Created: Nov 28, 2005


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Solaris: list detailed package information with pkginfo
  Remove a Solaris package with pkgrm
  Create a local Solaris flash archive
  Install a Solaris directory-based package
  Install a Solaris datastream package
  Solaris 10: shutdown or stop a zone
  Solaris 10: connect or login to zone console
  find which package a file belongs to
  Install patches manually in Solaris
  Enable/configure FC-AL/SAN devices with cfgadm in Solaris

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.