The script content is as follows :#! /Bin/bash # process management tool --- htopecho "is checking and installing the system dependency package. Please wait ...... "yuminstallncurses-devel-yecho" is downloading the htop MAIN package ...... "DOWNLOAD =/usr/local/src
The script content is as follows:
#! /Bin/bash
# Process management tool --- htop
Echo "Checking System dependency package installation. Please wait ......"
Yum install ncurses-devel-y
Echo "downloading the htop MAIN package ......"
DOWNLOAD =/usr/local/src/
Cd $ {DOWNLOAD}
Wget http://sourceforge.net/projects/htop/files/htop/1.0.2/htop-1.0.2.tar.gz/download
Echo "extracting and compiling the htop MAIN package ......"
Tar zxf htop-1.0.2.tar.gz
Cd htop-1.0.2
./Configure
Echo "the installation is in progress. Please wait ......"
Make & make install
Echo "the installation is successful. Use ......"
Echo "run directly: # htop"