Install top on Solaris:
The system uses the x86 Solaris 9,download top-3.5.1-sol9-intel-local.gz
# Gzip-D top-3.5.1-sol9-intel-local.gz
# Pkgadd-D top-3.5.1-sol9-intel-local
The above is a simple process. The following describes in detail.
TopThis software is not included in the heap disc provided by Sun. It is a freeSoftware, You can download from the http://www.sunfreeware.com here. I useSolaris 9For exampleTopPackage download link: ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/Top-3.6-sol9-sparc-local.gz:
1. ConnectTop-3.6-sol9-sparc-local.gz is stored on your machine and uploaded to the server. I uploaded it to the/tmp/yang directory.
Sun480-1 # [/tmp/Yang] ls-l
Total 432
-RW-r -- 1 root other 215455 June 21 15:08Top-3.6-sol9-sparc-local.gz
2. Decompress with Gzip
Sun480-1 # [/tmp/Yang] gzip-dTop-3.6-sol9-sparc-local.gz
Sun480-1 # [/tmp/Yang] ls-l
Total 1216
-RW-r -- 1 root other 617984 June 21 15:08Top-3.6-sol9-sparc-local
3,SeeTop-3.6-sol9-sparc-local this file, do not think the end of the live it, directly execute this file will report"Top-3.6-sol9-sparc-local: smctop: Not Found "and so on a bunch of errors. In this step, pkgtrans is required.
# Pkgadd-D top-3.6-sol9-sparc-local
The following packages are available:
1 smctop top
(ISCSI) 3.6
Select package (s) You wish to process (or 'all' to process
All packages). (default: All )[?,??, Q]: All
Processing Package instance <smctop> from </ITSE/top-3.6-sol9-sparc-local>
Top
(ISCSI) 3.6
Lefebvre et al
The selected base Directory </usr/local> must exist before
Installation is attempted.
Do you want this directory created now [y, N ,?, Q] y
Using </usr/local> as the package base directory.
# Processing Package information.
# Processing system information.
# Verifying disk space requirements.
# Checking for conflicts with packages already installed.
# Checking for Setuid/Setgid programs.
Installing top as <smctop>
# Installing Part 1 of 1.
/Usr/local/bin/sparcv7/top
/Usr/local/bin/sparcv9/top
/Usr/local/bin/top
/Usr/local/doc/top/changes
/Usr/local/doc/top/faq
/Usr/local/doc/top/install
/Usr/local/doc/top/license
/Usr/local/doc/top/readme
/Usr/local/doc/top/Y2K
/Usr/local/man/Man1/top.1
[Verifying class <none>]
Installation of <smctop> was successful.
#
Finally, set your path variable to your top installation path for ease of use.