a)首先在windows下下载top,下载地址: ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/top-3.6.1-sol10-sparc-local.gz
b) 用cuteftp上传到我的服务器上,注意如果上传不成功,并提示目录不可写,这通常是因为当前目录权限设置的原因,而不是因为FTP权限设置原因。
#mkdir /opt/tmp
上传后,就可以在上述目录中看到文件top-3.6.1-sol10-sparc-local.gz
c) 解压缩
root@ # cd tmp/root@ # lstop-3.6.1-sol10-sparc-localroot@ # ls -alrttotal 502-rw-r--r-- 1 root root 242688 Mar 2 16:29 top-3.6.1-sol10-sparc-localdrwxr-xr-x 73 root sys 1536 Mar 2 16:30 ..drwxr-xr-x 2 root root 512 Mar 2 16:31 .root@ # chmod 755 top-3.6.1-sol10-sparc-local root@ # ls -alrttotal 502-rwxr-xr-x 1 root root 242688 Mar 2 16:29 top-3.6.1-sol10-sparc-localdrwxr-xr-x 73 root sys 1536 Mar 2 16:30 ..drwxr-xr-x 2 root root 512 Mar 2 16:31 .root@ # pkgtrans top-3.6.1-sol10-sparc-local usage: pkgtrans [-ionsg] [-k keystore] [-a alias] [-P password] srcdev dstdev [pkg [pkg...]]root@ # pkgtrans top-3.6.1-sol10-sparc-local .
The following packages are available: 1 SMCtop top (sparc) 3.6.1
Select package(s) you wish to process (or 'all' to processall packages). (default: all) [?,??,q]: Transferring <SMCtop> package instanceroot@ # ls -alrttotal 504-rwxr-xr-x 1 root root 242688 Mar 2 16:29 top-3.6.1-sol10-sparc-localdrwxr-xr-x 73 root sys 1536 Mar 2 16:30 ..drwxr-xr-x 3 root root 512 Mar 2 16:35 .drwxr-xr-x 3 root root 512 Mar 2 16:35 SMCtoproot@ # pkgadd -d ./
The following packages are available: 1 SMCtop top (sparc) 3.6.1
Select package(s) you wish to process (or 'all' to processall packages). (default: all) [?,??,q]:
Processing package instance <SMCtop> from </opt/tmp>
top(sparc) 3.6.1LeFebvre et alUsing </usr/local> as the package base directory.## Processing package information.## Processing system information.## Verifying disk space requirements.## Checking for conflicts with packages already installed.
The following files are already installed on the system and are beingused by another package:* /usr/local/bin <attribute change only>
* - conflict with a file which does not belong to any package.
Do you want to install these conflicting files [y,n,?,q] y## 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.root@ # root@ # root@ # su - testUserOracle Corporation SunOS 5.10 Generic Patch January 2005$ bashbash-3.00$ vi .profile ".profile" 7 lines, 212 characters # This is the default standard profile provided to a user.# They are expected to edit it to meet their own needs.
PATH=$PATH:/usr/local/bin/export~
~~".profile" 10 lines, 246 characters bash-3.00$ bash-3.00$ bash-3.00$ exitexit$ exitroot@ # su - testUserOracle Corporation SunOS 5.10 Generic Patch January 2005export PATH
$ top
load averages: 16.2, 15.8, 19.3; up 105+22:19:50 16:38:20