Installation

gtop is a Node.js application and can be installed via several methods. Choose the one that best fits your environment.

Prerequisites

Before installing, ensure you have Node.js installed on your system. gtop requires:

  • Node.js version 4.0.0 or higher.

You can check your Node.js version with the following command:

node --version

The easiest way to install gtop is globally using npm (Node Package Manager).

npm install gtop -g

This will install the gtop command and make it available in your system's PATH.

Using Snap

If you are on a Linux distribution that supports Snap, you can install gtop from the Snap Store.

sudo snap install gtop

For more information, visit the gtop Snapcraft page.

Using Docker

For an isolated environment, you can run gtop using Docker. See the Deployment with Docker guide for detailed instructions.