Finding the path to an executable , installed package

Hi all,

Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this)

pkginfo -i | grep -i "ssl" 
system      SUNWopenssl-commands             OpenSSL Commands (Usr)
system      SUNWopenssl-include              OpenSSL Header Files
system      SUNWopenssl-libraries            OpenSSL Libraries (Usr)
system      SUNWopenssl-man                  OpenSSL Manual Pages
system      SUNWopensslr                     OpenSSL (Root)

bash-3.2# pkginfo -l SUNWopenssl-commands
   PKGINST:  SUNWopenssl-commands
      NAME:  OpenSSL Commands (Usr)
  CATEGORY:  system
      ARCH:  i386
   VERSION:  11.10.0,REV=2005.01.21.16.34
   BASEDIR:  /
    VENDOR:  Oracle Corporation
      DESC:  OpenSSL Commands (Use)
    PSTAMP:  on10-patch-x20151130124749
  INSTDATE:  Jan 20 2016 21:19
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:       12 installed pathnames
                   6 shared pathnames
                   6 directories
                   6 executables
                3773 blocks used (approx)

But i still cant find where the "openssl" executable is ..
googling around tell me it is at /usr/sfw/bin ,
but is there any other proper way to find out ?

Regards,
Noob

How to find list of files installed by a package | Sun Solaris System Admin

1 Like

Namely

pkgchk -l SUNWopenssl-commands | egrep '^(Pathname|Type)'

Or

pkgchk -l SUNWopenssl-commands | nawk '/^Pathname/{$1=""; print}' | xargs ls -ld

--
Quick-and-dirty alternative

grep -w SUNWopenssl-commands /var/sadm/install/contents
1 Like

Sorry madeingermany, totally miss out this thread