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.
# yum install epel-release
Sample output
Next, install NodeJS. NodeJS is a powerful Javascript platform used for the development of powerful applications. To install NodeJS execute the command
# yum install nodejs
Sample output
Next, install npm package manager as shown
# yum install npm
Finally, install gtop using the npm package manager.
# npm install gtop -g
Sample output
To launch gtop and view the system’s metrics run.
# gtop
Installation of Gtop in Ubuntu 18.04
Just like in CentOS 8, begin by installing NodeJS on Ubuntu.
# sudo apt install nodejs
Sample output
To check the version of NodeJS installed, run
node --version
Sample output
Next, install npm package Manager using the command as shown
# sudo apt install npm
Using npm install the Gtop monitoring tool
npm install gtop -g
Sample output
Finally, launch Gtop
gtop