$ whatis pfexec

pfexec, pfsh, pfcsh, pfksh - execute a command in a profile

NOTE: These commands are for Oracle Solaris platform and was provided here for advanced users as a bonus reading.

SYNOPSIS

/usr/bin/pfexec command

/usr/bin/pfexec -P privspec command [ arg ]...

/usr/bin/pfsh [ options ] [ argument ]...

/usr/bin/pfcsh [ options ] [ argument ]...

/usr/bin/pfksh [ options ] [ argument ]...


Examples:

	As you can see from the SYNOPSIS section of these commands, they are all linked to the pfexec 
command. Here I am showing they all have the same i-node number since they are physically linked to 
each other and depending on the profile one could use, there is always a profile shell for it as 
shown below: 
	 Profile Shell			Shell
	   pfsh			sh
	   pfksh			ksh
	   pfrksh			rksh
	   pfbash			bash
	   pfcsh			csh
	   pfzsh			zsh	
	Below, you can see they all have the same i-node number as well as the check sum value for them are the same.
# ls -li /usr/bin/pf*sh /usr/bin/pfexec
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfbash
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfcsh
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfexec
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfksh
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfrksh
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfsh
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pftcsh
11274 -r-xr-xr-x 12 root bin 12956 2010-11-05 08:02 /usr/bin/pfzsh
# cksum /usr/bin/pf*sh /usr/bin/pfexec
3135985131 12956 /usr/bin/pfbash
3135985131 12956 /usr/bin/pfcsh
3135985131 12956 /usr/bin/pfksh
3135985131 12956 /usr/bin/pfrksh
3135985131 12956 /usr/bin/pfsh
3135985131 12956 /usr/bin/pftcsh
3135985131 12956 /usr/bin/pfzsh
3135985131 12956 /usr/bin/pfexec
# type /usr/bin/pf*sh /usr/bin/pfexec
/usr/bin/pfbash is /usr/bin/pfbash
/usr/bin/pfcsh is /usr/bin/pfcsh
/usr/bin/pfksh is /usr/bin/pfksh
/usr/bin/pfrksh is /usr/bin/pfrksh
/usr/bin/pfsh is /usr/bin/pfsh
/usr/bin/pftcsh is /usr/bin/pftcsh
/usr/bin/pfzsh is /usr/bin/pfzsh
/usr/bin/pfexec is /usr/bin/pfexec
	In this example I am using pfexec to install GNU Debuger (gdb).
First, I run the command 'which gdb' to see if gdb is installed in my server. 
$ which gdb
which: no gdb in (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin)
	Since, the GNU Debuger (gdb) is not installed in my server, I would like 
to know what is the latest version available so that I could use the Solaris 11 
Express pkg command to search for it.
$ pfexec pkg search gdb
INDEX           ACTION   VALUE                       PACKAGE
basename        dir      usr/share/gdb               pkg:/library/glib2@0.5.11-0.151.0.1
basename        dir      usr/share/glib-2.0/gdb      pkg:/library/glib2@0.5.11-0.151.0.1
basename        file     usr/bin/gdb                 pkg:/developer/debug/gdb@6.8-0.151.0.1
basename        file     usr/bin/amd64/gdb           pkg:/developer/debug/gdb@6.8-0.151.0.1
basename        file     usr/bin/i86/gdb             pkg:/developer/debug/gdb@6.8-0.151.0.1
basename        hardlink usr/bin/gdb                 pkg:/developer/debug/gdb@6.8-0.151.0.1
basename        link     usr/sfw/bin/gdb             pkg:/developer/debug/gdb@6.8-0.151.0.1
description     set      gdb - GNU debugger          pkg:/developer/debug/gdb@6.8-0.151.0.1
pkg.description set      gdb - GNU debugger (6.8)    pkg:/developer/debug/gdb@6.8-0.151.0.1
pkg.fmri        set      solaris/developer/debug/gdb pkg:/developer/debug/gdb@6.8-0.151.0.1
pkg.summary     set      gdb - GNU debugger          pkg:/developer/debug/gdb@6.8-0.151.0.1
	By default the pkg info will check in the local server that I am logged in, or If I use 
the 'pkg info or pkg info -l',  I will get the list of installed packages on the host I am logged 
in, but since it is not installed, the 'pkg info' helped me out by letting me know to use the 
'pkg info -r' for remote packages that are available for installation to my local server.
$ pfexec pkg info pkg:/developer/debug/gdb@6.8-0.151.0.1
pkg: info: no packages matching the following patterns you specified are
installed on the system.  Try specifying -r to query remotely:
        pkg:/developer/debug/gdb@6.8-0.151.0.1
		Note, the pkg commands that provides information such as 'pkg info, pkg search, 
pkg publisher, pkd history, etc' do not require root or supervisory access, therefore, there is 
no need to include 'pfexec' command in front of the 'pkg' command. However, if one desire to do 
so, it does not complain as long as the user is having the proper access privileges.    
$ pfexec pkg info -r pkg:/developer/debug/gdb@6.8-0.151.0.1
          Name: developer/debug/gdb
       Summary: gdb - GNU debugger
   Description: gdb - GNU debugger (6.8)
      Category: Development/System
         State: Not installed
     Publisher: solaris
       Version: 6.8
 Build Release: 5.11
        Branch: 0.151.0.1
Packaging Date: November  5, 2010 05:37:31 AM 
          Size: 15.35 MB
          FMRI: pkg://solaris/developer/debug/gdb@6.8,5.11-0.151.0.1:20101105T053731Z
	Since the 'pkg install' command require root access, I run the commands below to make sure 
I am having the proper access before using the 'pfexec pkg install' command.
$ hostname
MySolaris
$ grep -i wahid /etc/auto_home
wahid  localhost:/export/home/&
$ id
uid=101(wahid) gid=10(staff) groups=10(staff)
$ profiles
Basic Solaris User
All
$ roles
root
$ pfexec pkg install pkg:/developer/debug/gdb@6.8-0.151.0.1
Refreshing catalog                    Refreshing catalog 1/2 opensolaris.org                            
Refreshing catalog 2/2 solaris        Caching catalogs ...                                   
Creating Plan Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \  Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan - Creating Plan \ Creating Plan | Creating Plan / 
Creating Plan -                      Packages to install:     1
           Create boot environment:    No
DOWNLOAD                                  PKGS       FILES    XFER (MB)
developer/debug/gdb                        0/1        0/17      0.0/5.7$<3>developer/debug/gdb 
                      0/1        0/17      0.0/5.7$<3>developer/debug/gdb
                      0/1       12/17      0.8/5.7$<3>developer/debug/gdb
                      0/1       12/17      2.6/5.7$<3>developer/debug/gdb
                      0/1       13/17      3.6/5.7$<3>developer/debug/gdb 
                      0/1       13/17      4.3/5.7$<3>developer/debug/gdb
                      0/1       14/17      4.7/5.7$<3>developer/debug/gdb
                      0/1       14/17      5.1/5.7$<3>developer/debug/gdb
                      0/1       14/17      5.5/5.7$<3>developer/debug/gdb
                      0/1       15/17      5.7/5.7$<3>Completed       
                      1/1       17/17      5.7/5.7$<3>
PHASE                                        ACTIONS
Install Phase   	1/47 Install Phase   
			27/47 Install Phase      
			29/47 Install Phase                                  
			37/47 Install Phase                                  
			47/47
PHASE                  			     ITEMS
Package State Update Phase              1/1 Package State Update Phase
					1/1 Image State Update Phase
					1/2 Image State Update Phase                         
					2/2 Image State Update Phase                         
					2/2
PHASE                                          ITEMS
Reading Existing Index                  1/8 Reading Existing Index  
					5/8 Reading Existing Index      
		                        8/8
Indexing Packages                       1/1
$ pkg search pkg:/developer/debug/gdb@6.8-0.151.0.1
search: No such file or directory
$ pfexec pkg search pkg:/developer/debug/gdb@6.8-0.151.0.1

	I use the command command below to verify the gdb package.
$ pkg verify pkg:/developer/debug/gdb@6.8-0.151.0.1
pkg://solaris/developer/debug/gdb
..... --$<3>pkg://solaris/developer/debug/gdb
..... \\$<3>pkg://solaris/developer/debug/gdb                 
..... ||$<3>pkg://solaris/developer/debug/gdb                 
..... //$<3>pkg://solaris/developer/debug/gdb                 
..... --$<3>                                                           $ 
$ pkg info pkg:/developer/debug/gdb@6.8-0.151.0.1
          Name: developer/debug/gdb
       Summary: gdb - GNU debugger
   Description: gdb - GNU debugger (6.8)
      Category: Development/System
         State: Installed
     Publisher: solaris
       Version: 6.8
 Build Release: 5.11
        Branch: 0.151.0.1
Packaging Date: November  5, 2010 05:37:31 AM 
          Size: 15.35 MB
          FMRI: pkg://solaris/developer/debug/gdb@6.8,5.11-0.151.0.1:20101105T053731Z
	
	The pkg publisher provides you to get the source of the packages repository. You can also 
use this arguments to update the list of publishers. Please use the pkg man pages to see all the 
options as you need to do certain tasks.  	
$ pfexec pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://pkg.oracle.com/solaris/release/
opensolaris.org          (non-sticky) origin   online   http://pkg.opensolaris.org/release/

	Here is a list of the pkg commands and their set of options for your convenience:
$ pkg --help
Usage:
        pkg [options] command [cmd_options] [operands]

Basic subcommands:
        pkg install [-nvq] [--accept] [--licenses] [--no-index] [--no-refresh]
            [--deny-new-be | --require-new-be] [--be-name name]
            pkg_fmri_pattern ...
        pkg uninstall [-nrvq] [--no-index] [--deny-new-be | --require-new-be]
            [--be-name name] pkg_fmri_pattern ...
        pkg update [-fnvq] [--accept] [--be-name name] [--licenses]
            [--deny-new-be | --require-new-be] [--no-index]
            [--no-refresh] [pkg_fmri_pattern ...]
        pkg list [-Hafnsuv] [--no-refresh] [pkg_fmri_pattern ...]
        pkg refresh [--full] [publisher ...]
        pkg version

Advanced subcommands:
        pkg info [-lr] [--license] [pkg_fmri_pattern ...]
        pkg search [-HIaflpr] [-o attribute ...] [-s repo_uri] query
        pkg verify [-Hqv] [pkg_fmri_pattern ...]
        pkg fix [--accept] [--licenses] [pkg_fmri_pattern ...]
        pkg contents [-Hmr] [-a attribute=pattern ...] [-o attribute ...]
            [-s sort_key] [-t action_type ...] [pkg_fmri_pattern ...]
        pkg image-create [-FPUfz] [--force] [--full|--partial|--user] [--zone]
            [-k ssl_key] [-c ssl_cert] [--no-refresh]
            [--variant = ...]
            [-g uri|--origin=uri ...] [-m uri|--mirror=uri ...]
            [--facet =[True|False] ...]
            (-p|--publisher) [=] dir
        pkg change-variant [-nvq] [--accept] [--be-name name] [--licenses]
            [--deny-new-be | --require-new-be] = ...
        pkg change-facet [-nvq] [--accept] [--be-name name] [--licenses]
            [--deny-new-be | --require-new-be] =[True|False|None] ...
        pkg variant [-H] []
        pkg facet [-H] []
        pkg set-property propname propvalue
        pkg add-property-value propname propvalue
        pkg remove-property-value propname propvalue
        pkg unset-property propname ...
        pkg property [-H] [propname ...]

        pkg set-publisher [-Ped] [-k ssl_key] [-c ssl_cert]
            [-g origin_to_add|--add-origin=origin_to_add ...]
            [-G origin_to_remove|--remove-origin=origin_to_remove ...]
            [-m mirror_to_add|--add-mirror=mirror_to_add ...]
            [-M mirror_to_remove|--remove-mirror=mirror_to_remove ...]
            [-p repo_uri] [--enable] [--disable] [--no-refresh]
            [--reset-uuid] [--non-sticky] [--sticky]
            [--search-after=publisher]
            [--search-before=publisher]
            [--approve-ca-cert=path_to_CA]
            [--revoke-ca-cert=hash_of_CA_to_revoke]
            [--unset-ca-cert=hash_of_CA_to_unset]
            [--set-property name_of_property=value]
            [--add-property-value name_of_property=value_to_add]
            [--remove-property-value name_of_property=value_to_remove]
            [--unset-property name_of_property_to_delete]
            [publisher]
        pkg unset-publisher publisher ...
        pkg publisher [-HPn] [publisher ...]
        pkg history [-Hl] [-n number]
        pkg purge-history
        pkg rebuild-index

Options:
        -R dir
        --help or -?

Environment:
        PKG_IMAGE

$ pfexec pkg version
052adf36c3f4

 	Now I have installed the gdb, I use the 'pkg info -l' command to see the details of the GNU Debugger.
	
$ pfexec pkg info -l pkg:/developer/debug/gdb@6.8-0.151.0.1
          Name: developer/debug/gdb
       Summary: gdb - GNU debugger
   Description: gdb - GNU debugger (6.8)
      Category: Development/System
         State: Installed
     Publisher: solaris
       Version: 6.8
 Build Release: 5.11
        Branch: 0.151.0.1
Packaging Date: November  5, 2010 05:37:31 AM 
          Size: 15.35 MB
          FMRI: pkg://solaris/developer/debug/gdb@6.8,5.11-0.151.0.1:20101105T053731Z


$ pfexec pkg history pkg:/developer/debug/gdb@6.8-0.151.0.1
TIME                OPERATION                 CLIENT          OUTCOME
2008-11-19T16:38:32 purge-history             pkg             Succeeded
2009-11-18T15:07:24 uninstall                 pkg             Succeeded
2009-11-18T15:08:10 set-authority             pkg             Succeeded
2010-02-10T04:48:40 install                   packagemanager  Succeeded
2010-02-10T04:53:21 install                   packagemanager  Succeeded
2010-02-10T05:22:35 install                   packagemanager  Succeeded
2010-02-10T05:38:14 install                   packagemanager  Succeeded
2010-02-10T06:11:12 install                   packagemanager  Succeeded
2010-04-20T11:41:26 install                   packagemanager  Succeeded
2011-01-26T13:28:45 install                   packagemanager  Failed (Constrained)
2011-01-26T13:33:27 install                   packagemanager  Failed (Constrained)
2011-01-26T13:35:00 install                   packagemanager  Failed (Unknown)
2011-02-10T12:17:27 image-update              pkg             Failed (Constrained)
2011-02-10T12:19:30 install                   pkg             Failed (Bad Request)
2011-03-04T16:06:03 install                   pkg             Failed (Bad Request)
2011-03-04T16:08:10 install                   pkg             Failed (Bad Request)
2011-03-08T15:11:03 install                   packagemanager  Succeeded
2011-03-08T15:37:04 image-update              pkg             Failed (Bad Request)
2011-03-08T15:37:23 refresh-publishers        pkg             Succeeded
2011-03-08T15:37:23 image-update              pkg             Failed (Out of Memory)
2011-03-08T15:53:14 update-publisher          pkg             Succeeded
2011-03-08T15:54:40 update-publisher          pkg             Succeeded
2011-03-08T15:56:24 refresh-publishers        pkg             Succeeded
2011-03-08T15:56:24 image-update              pkg             Nothing to do
2011-03-08T16:00:25 refresh-publishers        pkg             Succeeded
2011-03-08T16:00:25 install                   pkg             Failed (Unknown)
2011-03-08T16:02:00 refresh-publishers        pkg             Succeeded
2011-03-08T16:02:00 image-update              pkg             Succeeded
2011-03-10T12:39:25 upgrade-image             pkg             Succeeded
2011-03-10T12:40:04 refresh-publishers        pkg             Succeeded
2011-03-10T12:40:06 rebuild-image-catalogs    pkg             Succeeded
2011-03-10T12:40:20 refresh-publishers        check_for_updates Succeeded
2011-03-10T12:40:20 image-update              check_for_updates Nothing to do
2011-03-10T18:31:44 refresh-publishers        pkg             Succeeded
2011-03-10T18:31:45 refresh-publishers        check_for_updates Succeeded
2011-03-10T18:31:45 image-update              check_for_updates Nothing to do
2011-03-10T21:34:06 refresh-publishers        pkg             Succeeded
2011-03-10T21:34:07 refresh-publishers        check_for_updates Succeeded
2011-03-10T21:34:07 image-update              check_for_updates Nothing to do
2011-03-11T00:58:02 refresh-publishers        pkg             Succeeded
2011-03-11T00:58:03 refresh-publishers        check_for_updates Succeeded
2011-03-11T00:58:03 image-update              check_for_updates Nothing to do
2011-03-11T09:31:00 refresh-publishers        pkg             Succeeded
2011-03-11T09:31:01 refresh-publishers        check_for_updates Succeeded
2011-03-11T09:31:01 image-update              check_for_updates Nothing to do
2011-03-11T12:33:23 refresh-publishers        pkg             Succeeded
2011-03-11T12:33:24 refresh-publishers        check_for_updates Succeeded
2011-03-11T12:33:24 image-update              check_for_updates Nothing to do
2011-03-11T18:59:48 refresh-publishers        pkg             Succeeded
2011-03-11T18:59:49 refresh-publishers        check_for_updates Succeeded
2011-03-11T18:59:49 image-update              check_for_updates Nothing to do
2011-03-11T21:32:11 refresh-publishers        pkg             Succeeded
2011-03-11T21:32:12 refresh-publishers        check_for_updates Succeeded
2011-03-11T21:32:12 image-update              check_for_updates Nothing to do
2011-03-12T00:34:33 refresh-publishers        pkg             Succeeded
2011-03-12T00:34:34 refresh-publishers        check_for_updates Succeeded
2011-03-12T00:34:34 image-update              check_for_updates Nothing to do
2011-03-12T09:41:16 refresh-publishers        pkg             Succeeded
2011-03-12T09:41:17 refresh-publishers        check_for_updates Succeeded
2011-03-12T09:41:17 image-update              check_for_updates Nothing to do
2011-03-12T12:43:39 refresh-publishers        pkg             Succeeded
2011-03-12T12:43:40 refresh-publishers        check_for_updates Succeeded
2011-03-12T12:43:40 image-update              check_for_updates Nothing to do
2011-03-12T18:40:05 refresh-publishers        pkg             Succeeded
2011-03-12T18:40:06 refresh-publishers        check_for_updates Succeeded
2011-03-12T18:40:06 image-update              check_for_updates Nothing to do
2011-03-12T21:42:26 refresh-publishers        pkg             Succeeded
2011-03-12T21:42:27 refresh-publishers        check_for_updates Succeeded
2011-03-12T21:42:27 image-update              check_for_updates Nothing to do
2011-03-13T00:44:49 refresh-publishers        pkg             Succeeded
2011-03-13T00:44:50 refresh-publishers        check_for_updates Succeeded
2011-03-13T00:44:50 image-update              check_for_updates Nothing to do
2011-03-13T09:55:11 refresh-publishers        pkg             Succeeded
2011-03-13T09:55:13 refresh-publishers        check_for_updates Succeeded
2011-03-13T09:55:13 image-update              check_for_updates Nothing to do
2011-03-13T12:57:34 refresh-publishers        pkg             Succeeded
2011-03-13T12:57:35 refresh-publishers        check_for_updates Succeeded
2011-03-13T12:57:35 image-update              check_for_updates Nothing to do
2011-03-13T18:41:28 refresh-publishers        pkg             Succeeded
2011-03-13T18:41:29 refresh-publishers        check_for_updates Succeeded
2011-03-13T18:41:29 image-update              check_for_updates Nothing to do
2011-03-13T21:38:23 refresh-publishers        pkg             Succeeded
2011-03-13T21:38:24 refresh-publishers        check_for_updates Succeeded
2011-03-13T21:38:24 image-update              check_for_updates Nothing to do
2011-03-14T00:40:46 refresh-publishers        pkg             Succeeded
2011-03-14T00:40:47 refresh-publishers        check_for_updates Succeeded
2011-03-14T00:40:47 image-update              check_for_updates Nothing to do
2011-03-14T09:47:29 refresh-publishers        pkg             Succeeded
2011-03-14T09:47:31 refresh-publishers        check_for_updates Succeeded
2011-03-14T09:47:31 image-update              check_for_updates Nothing to do
2011-03-14T12:34:01 refresh-publishers        pkg             Succeeded
2011-03-14T12:34:02 refresh-publishers        check_for_updates Succeeded
2011-03-14T12:34:02 image-update              check_for_updates Nothing to do
2011-03-14T18:54:56 refresh-publishers        pkg             Succeeded
2011-03-14T18:54:58 refresh-publishers        check_for_updates Succeeded
2011-03-14T18:54:58 image-update              check_for_updates Nothing to do
2011-03-14T21:57:19 refresh-publishers        pkg             Succeeded
2011-03-14T21:57:20 refresh-publishers        check_for_updates Succeeded
2011-03-14T21:57:20 image-update              check_for_updates Nothing to do
2011-03-15T00:32:11 refresh-publishers        pkg             Succeeded
2011-03-15T00:32:12 refresh-publishers        check_for_updates Succeeded
2011-03-15T00:32:12 image-update              check_for_updates Nothing to do
2011-03-15T09:38:55 refresh-publishers        pkg             Succeeded
2011-03-15T09:38:56 refresh-publishers        check_for_updates Succeeded
2011-03-15T09:38:56 image-update              check_for_updates Nothing to do
2011-03-15T12:09:45 refresh-publishers        packagemanager  Succeeded
2011-03-15T12:10:35 install                   packagemanager  Succeeded
2011-03-15T12:11:37 refresh-publishers        packagemanager  Succeeded
2011-03-15T12:57:26 refresh-publishers        pkg             Succeeded
2011-03-15T12:57:28 refresh-publishers        check_for_updates Succeeded
2011-03-15T12:57:28 image-update              check_for_updates Nothing to do
2011-03-15T14:06:28 refresh-publishers        pkg             Succeeded
2011-03-15T14:06:28 install                   pkg             Succeeded
2011-03-15T16:53:26 refresh-publishers        packagemanager  Succeeded
2011-03-15T18:47:21 refresh-publishers        pkg             Succeeded
2011-03-15T18:47:22 refresh-publishers        check_for_updates Succeeded
2011-03-15T18:47:22 image-update              check_for_updates Nothing to do
2011-03-15T21:49:44 refresh-publishers        pkg             Succeeded
2011-03-15T21:49:45 refresh-publishers        check_for_updates Succeeded
2011-03-15T21:49:45 image-update              check_for_updates Nothing to do
2011-03-16T00:34:10 refresh-publishers        pkg             Succeeded
2011-03-16T00:34:11 refresh-publishers        check_for_updates Succeeded
2011-03-16T00:34:11 image-update              check_for_updates Nothing to do
2011-03-16T09:55:03 refresh-publishers        pkg             Succeeded
2011-03-16T09:55:04 refresh-publishers        check_for_updates Succeeded
2011-03-16T09:55:04 image-update              check_for_updates Nothing to do
2011-03-16T11:07:59 uninstall                 pkg             Failed (Bad Request)
2011-03-16T11:08:29 remove-publisher          pkg             Failed (Bad Request)
2011-03-16T11:09:09 uninstall                 pkg             Failed (Bad Request)
2011-03-16T11:10:20 uninstall                 pkg             Failed (Bad Request)
2011-03-16T11:11:15 refresh-publishers        pkg             Succeeded
2011-03-16T11:11:15 image-update              pkg             Nothing to do
2011-03-16T11:12:50 update-publisher          pkg             Succeeded
2011-03-16T11:13:32 rebuild-image-catalogs    pkg             Succeeded
2011-03-16T11:13:32 refresh-publishers        pkg             Succeeded
2011-03-16T11:13:32 add-publisher             pkg             Succeeded
2011-03-16T11:13:51 set-preferred-publisher   pkg             Succeeded
2011-03-16T11:14:56 refresh-publishers        pkg             Succeeded
2011-03-16T11:14:56 image-update              pkg             Failed (Constrained)
2011-03-16T11:15:35 refresh-publishers        pkg             Succeeded
2011-03-16T11:15:35 install                   pkg             Succeeded
2011-03-16T11:15:36 rebuild-image-catalogs    pkg             Succeeded
2011-03-16T11:17:34 refresh-publishers        pkg             Succeeded
2011-03-16T11:17:34 image-update              pkg             Canceled
2011-03-16T11:17:35 rebuild-image-catalogs    pkg             Succeeded
2011-03-16T11:19:39 refresh-publishers        pkg             Succeeded
2011-03-16T11:19:39 image-update              pkg             Succeeded
2011-03-16T15:41:21 install                   pkg             Succeeded
2011-03-16T18:58:13 refresh-publishers        pkg             Succeeded
2011-03-16T18:58:16 rebuild-image-catalogs    pkg             Succeeded
2011-03-16T18:58:34 refresh-publishers        updatemanager   Succeeded
2011-03-16T18:58:37 rebuild-image-catalogs    updatemanager   Succeeded
2011-03-17T00:55:24 refresh-publishers        pkg             Succeeded
2011-03-17T00:55:27 rebuild-image-catalogs    pkg             Succeeded
2011-03-19T12:42:34 refresh-publishers        pkg             Succeeded
2011-03-19T12:42:37 rebuild-image-catalogs    pkg             Succeeded
2011-04-01T12:38:54 refresh-publishers        updatemanager   Succeeded
2011-04-01T12:38:56 rebuild-image-catalogs    updatemanager   Succeeded
2011-04-03T09:36:55 refresh-publishers        pkg             Succeeded
2011-04-03T09:36:59 rebuild-image-catalogs    pkg             Succeeded
2011-04-03T09:37:12 refresh-publishers        updatemanager   Succeeded
2011-04-03T09:37:14 rebuild-image-catalogs    updatemanager   Succeeded
2011-04-08T00:47:52 refresh-publishers        pkg             Succeeded
2011-04-08T00:47:54 rebuild-image-catalogs    pkg             Succeeded
2011-04-14T00:30:39 refresh-publishers        pkg             Succeeded
2011-04-14T00:30:42 rebuild-image-catalogs    pkg             Succeeded
2011-04-14T21:51:42 refresh-publishers        pkg             Succeeded
2011-04-14T21:51:45 rebuild-image-catalogs    pkg             Succeeded
2011-04-14T21:51:59 refresh-publishers        updatemanager   Succeeded
2011-04-14T21:52:02 rebuild-image-catalogs    updatemanager   Succeeded
2011-04-18T18:32:43 refresh-publishers        pkg             Succeeded
2011-04-18T18:32:46 rebuild-image-catalogs    pkg             Succeeded
2011-04-18T18:32:59 refresh-publishers        updatemanager   Succeeded
2011-04-18T18:33:02 rebuild-image-catalogs    updatemanager   Succeeded
2011-04-19T15:25:55 refresh-publishers        pkg             Succeeded
2011-04-19T15:25:55 install                   pkg             Succeeded
2011-04-19T15:25:58 rebuild-image-catalogs    pkg             Succeeded
$ 
  Now, You can see the gdb is installed.	
$ which gdb
/usr/bin/gdb
$ whereis gdb
$ ls -l /usr/bin/gdb
-r-xr-xr-x 82 root bin 8420 2011-03-16 11:43 /usr/bin/gdb
$ pkginfo -l | grep -i gdb
   PKGINST:  SUNWgdb
      NAME:  gdb - GNU debugger
      DESC:  gdb - GNU debugger (6.8)
$ pkginfo -l  SUNWgdb
   PKGINST:  SUNWgdb
      NAME:  gdb - GNU debugger
  CATEGORY:  system
      ARCH:  i386
   VERSION:  11.11.0,REV=2010.10.12.04.23
   BASEDIR:  /
    VENDOR:  Oracle Corporation
      DESC:  gdb - GNU debugger (6.8)
  INSTDATE:  Apr 19 2011 15:26
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed

Please click on " man pfexec. " to see the Manual Page for this command.

Please click on " man pfsh. " to see the Manual Page for this command.

Please click on " man pfksh. " to see the Manual Page for this command.

Please click on " man pfcsh. " to see the Manual Page for this command.