hi downloaded the pkg and installed the pkg from root user .But still when i run command lsof and man lsof .No command found is the error. I tried by pkgadd -d (.pkg file). Please help me
---------- Post updated at 12:44 PM ---------- Previous update was at 12:41 PM ----------
This is what i done from root user in /root path
pkgadd -d lsof.4.87.SPARC.64bit.Solaris.11.pkg
The following packages are available:
1 lsof lsof 4.87 SPARC 64bit Solaris 11
(sparc) 4.87
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
Processing package instance <lsof> from </root/lsof.4.87.SPARC.64bit.Solaris.11.pkg>
lsof 4.87 SPARC 64bit Solaris 11(sparc) 4.87
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
Victor A. Abell
## Executing checkinstall script.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
7 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
The following files are being installed with setuid and/or setgid
permissions:
*/usr/local/bin/lsof <setgid sys>
* - overwriting a file which is also setuid/setgid.
Do you want to install these as setuid/setgid files [y,n,?,q] y
Installing lsof 4.87 SPARC 64bit Solaris 11 as <lsof>
## Installing part 1 of 1.
[ verifying class <none> ]
Installation of <lsof> was successful.
You have new mail in /var/mail/root
root:~# lsof
-bash: lsof: command not found
Note that lsof is not part of the GNU utilities, it is not even distributed under the GPL.
It is also very specific in the sense it uses undocumented and somewhat hackish methods to access private kernel structures. For this reason, it needs to be adapted each time these structures evolve and older binaries refuse to work on newer kernels.
To avoid such issues, it is recommended to use the bundled pfiles, netstat, and other supported utilities.