Tutorial, Internet, Hardware, Software, Os, Linux, Android, Security, Mikrotik

15 March, 2015

Install Htop On Centos 7

today we are so exciting to install another system process monitoring tool called Htop on our CentOS 7 box to see how it works.Htop is a text-mode, interactive process viewer for Linux run via console/ssh, and to install htop in CentOS 7 is a pretty simple task.

Install htop in CentOS Using YUM

Once the repository is installed, all you need to do to install htop in CentOS is run the following:
$ yum install htop

Compile htop from the Source on CentOS

Another option is to compile and install htop from the source. This option is useful when Repoforge is not available for whatever reason. For example, Repoforge is not yet released for CentOS 7, as of yet, Here is how to download the source and install htop from the source.

First, install prerequisites and download the source.
$ sudo yum groupinstall "Development Tools"
$ sudo yum install ncurses-devel
$ wget http://hisham.hm/htop/releases/1.0.3/htop-1.0.3.tar.gz
$ tar xvfvz htop-1.0.3.tar.gz
$ cd htop-1.0.3
Run the configure script to prepare for compilation.
$ ./configure
By default, htop will be installed under /usr/local/bin. If you want to change installation location to something else (e.g., /usr/bin), run configure script with "--prefix" option instead. For example:
$ ./configure --prefix=/usr
Finally, build and install htop as follows.
$ make
$ sudo make install
After installation, launch htop by entering:
$ htop

No comments:

Post a Comment

Terima kasih atas komentarnya