Solaris > Finding more information about packages

Posted on in Categories News last updated February 1, 2005

How to find what packages (software’s) installed?
1)Run the command pkginfo to find the information:
# pkginfo | more

2) Note that packages provided by SUN always have prefix SUNWpkgname

3 To find more about SSH Software’s:
# pkginfo | grep “SSH”

4) To print all available information about package (long format aka package description):
# pkginfo -l SUNWsshcu

Verify the package contents
1)You can use the command pkgchk as follows:
# pkgchk -l SUNWzip | more

How to verify that package installed successfully?
# pkgchk -v SUNWzip | more

OR

# pkgchk

If you run above command and something is missing then you will get on screen error:
# pkgchk -v SUNWzip | more
/usr
/usr/bin
ERROR: /usr/bin/zip
pathname does not exist
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment