Login or Register to Ask a Question and Join Our Community

How to install pkg lsof in Solaris 11?

Thread Tools Search this Thread
Operating Systems Solaris How to install pkg lsof in Solaris 11?
# 1  
Old 06-13-2016
How to install pkg lsof in Solaris 11?

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
*/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

Last edited by RudiC; 06-13-2016 at 03:00 PM.. Reason: Added code tags.
# 2  
Old 06-13-2016
Run the command with the full path or add the path to your PATH variable in your shell.
# 3  
Old 06-13-2016
you have a $PATH issue. it's already installed.

do a
locate lsof

and then run it with the whole path or update your $PATH in your profile to include the locate that contains it.

EDIT: it's /usr/local/bin/lsof

Last edited by os2mac; 06-13-2016 at 02:53 PM.. Reason: clarity.
# 4  
Old 06-13-2016
When i run this command i got
root:~# locate lsof

please help

Moderator's Comments:
Mod Comment Please use code tags as required by forum rules!

Last edited by RudiC; 06-13-2016 at 03:01 PM.. Reason: Added code tags.
# 5  
Old 06-13-2016
There are two posts with the answer to your question... Read everything, act accordingly and if you still have problems, report back with an update.
# 6  
Old 06-14-2016
Thanks Duke..I think installation is not done completely. I cannot find my lsof command in bin..The issue still persists..
# 7  
Old 06-14-2016
Did you check in /usr/local/bin?
This User Gave Thanks to DukeNuke2 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

PKG install from Solaris 11.2 text installer DVD

Sorry if this has been already answered. The solaris 11 IPS is frustrating me. I want to install a package group from the 11.2 ( in this case) Text Installer DVD. 1) is this possible? 2) if yes, how do I set the publisher to point the dvd mount point /media/Oracle_Solaris-11_2-Text-Sparc... (1 Reply)
Discussion started by: mrmurdock
1 Replies

2. Solaris

# pkg publisher gives bash: pkg: command not found

This is the operating system im using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC I need to install some packages by setting local repository While i run the below command # pkg publisher command returns bash: pkg: command not found while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies

3. Solaris

Solaris 11 pkg update question

Hi, I am trying to update my Solaris 11 system's Java 7 version to I tried to do a pke update, and it only updated it to version 60. When I do a pkg list or search, i can see 65 is available but it wont update to it. I am getting this error, and I do not know how to get... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. Solaris

Pkg problem, one zone trying pkg.Oracle.com on port 1008

Hi Solaris Experts, The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com I was using pkg successfully from this zone, but now it's showing this error: lzone1 $ pkg search xterm pkg: Some repositories failed to respond... (4 Replies)
Discussion started by: ad101
4 Replies

5. Solaris

How extract SUNWexplo.7.1.pkg & SUNWexplu.7.1.pkg from install_stb.sh?

Hi all, Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh. I need to upgrade my Sun Explorer to 7.2 version from 7.1 . This what written in read me file about its installation: The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

6. UNIX for Advanced & Expert Users

Linux column(1) from util-linux-ng for Solaris? Which *.pkg to install?

Hi On Linux systems there is a command called "column". column - columnate lists Synopsis column -tx] -c columns] -s sep] file ...] Description The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies

7. Solaris

How to install sun-python26.pkg

how to install sun-python26.pkg in solaris 10 with webstack? where i can find this file ? (1 Reply)
Discussion started by: yanto85
1 Replies

8. Solaris

Install Solaris pkg via web

here's a link shows how to install pkgs directly via http sat.lksf_sat_pkgweb.tex - Less known Solaris Features - wikis.sun.com (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies

9. Solaris

Install pkg "SUNWxglrt" Solaris 10

Please, help me!!! I need install this pkg (SUNWxglrt) in Solaris 10 x86, but I've not found on DVD or internet. What do I do????? This pkg exists??? (p.s.- I sorry my English if mistake anythings. I Brazilian and have problems with English). (2 Replies)
Discussion started by: Victor_Neto
2 Replies

10. Shell Programming and Scripting

lsof in solaris

Hi .. I have written a cronjob to invoke a script that would transfer files based on some criteria. Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect... (1 Reply)
Discussion started by: champak
1 Replies
Login or Register to Ask a Question

Featured Tech Videos