Gtop is a command-line system monitoring tool that displays in a graph format, a plethora of system metrics such as running processes, CPU utilization, network bandwidth, memory Usage, swap space, and Hard Disk usage. In this guide, you will learn how to install Gtop in Centos7 and Ubuntu 18.04.

Installation of Gtop in CentOS 7

The first step in installing Gtop on CentOS 7 is to install the epel repository. EPEL is short for Extra Packages for Enterprise Linux. As the name suggests, it ships extra packages and dependencies required for smooth running of applications.

Copy
# yum install epel-release

Sample output

Install Epel Release In Centos7

Next, install NodeJS. NodeJS is a powerful Javascript platform used for the development of powerful applications. To install NodeJS execute the command

Copy
# yum install nodejs

Sample output

Yum Install Nodejs

Next, install npm package manager as shown

Copy
# yum install npm

Finally, install gtop using the npm package manager.

Copy
# npm install gtop -g

Sample output

Install Gtop Using Npm

To launch gtop and view the system’s metrics run.

Copy
# gtop

Gtop

Installation of Gtop in Ubuntu 18.04

Just like in CentOS 8, begin by installing NodeJS on Ubuntu.

Copy
# sudo apt install nodejs

Sample output

Install Nodejs

To check the version of NodeJS installed, run

Copy
node --version

Sample output

Check Version Of Nodejs

Next, install npm package Manager using the command as shown

Copy
# sudo apt install npm

Install Npm on Ubuntu 18.04

Using npm install the Gtop monitoring tool

Copy
npm install gtop -g

Sample output

Install Gtop Using Npm

Finally, launch Gtop

Copy
gtop

Gtop