How to find files,directories,path,executables for packages


Sometimes you run into situations to try and understand where the files for your package that you just installed on your Sun Solaris Server. While this is no big deal for geeks lets help “not so geeks” with a way to find the files and path of installed package.

Here, on Sun Solaris 10, I know I’ve installed wget package and don’t have a clue where the files have gone into. Let’s start with finding the package name.

solaris10#  pkginfo -l | grep wget
   PKGINST:  SUNWwgetr
      NAME:  GNU wget – utility to retrieve files from the World Wide Web (root)
      DESC:  GNU wget – a utility to retrieve files from the World Wide Web (root components) 1.9.1
   PKGINST:  SUNWwgetu
      NAME:  wget – GNU wget
      DESC:  GNU wget – a utility to retrieve files from the World Wide Web (Usr) 1.9.1

Now, that will help you find the package name. Here SUNWwgetu

# pkginfo -l SUNWwgetu
   PKGINST:  SUNWwgetu
      NAME:  wget – GNU wget
  CATEGORY:  system
      ARCH:  i386
   VERSION:  11.10.0,REV=2005.01.08.01.09
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  GNU wget – a utility to retrieve files from the World Wide Web (Usr) 1.9.1
    PSTAMP:  sfw10-x20050108014615
  INSTDATE:  Mar 20 2007 14:38
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:        4 installed pathnames
                   3 shared pathnames
                   3 directories
                   1 executables
                 338 blocks used (approx)

That gives you a more detailed insight on the package. If you look at the last part of the output, it displays the number of files, directories, paths installed and the number of executables installed.

To find the files installed

# pkgchk -v SUNWwgetu
/usr
/usr/sfw
/usr/sfw/bin
/usr/sfw/bin/wget

This will give details of the package files, directories, paths and executable installed. For wget the executable is in /usr/sfw/bin/

This should help!

Leave a Comment

Your email address will not be published. Required fields are marked *