How To Install virt-top on Ubuntu 20.04

In this tutorial we learn how to install virt-top on Ubuntu 20.04. virt-top is show stats of virtualized domains

Introduction

In this tutorial we learn how to install virt-top on Ubuntu 20.04.

What is virt-top

virt-top is:

virt-top is a top-like utility for showing stats of virtualized domains. Many keys and command line options are the same as for ordinary top.

It uses libvirt so it capable of showing stats across a variety of different virtualization systems (virtual machines or VM). Some supported systems are KVM, XEN and QEMU.

There are three methods to install virt-top on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install virt-top Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install virt-top using apt-get by running the following command:

sudo apt-get -y install virt-top

Install virt-top Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install virt-top using apt by running the following command:

sudo apt -y install virt-top

Install virt-top Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install virt-top using aptitude by running the following command:

sudo aptitude -y install virt-top

How To Uninstall virt-top on Ubuntu 20.04

To uninstall only the virt-top package we can use the following command:

sudo apt-get remove virt-top

Uninstall virt-top And Its Dependencies

To uninstall virt-top and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove virt-top

Remove virt-top Configurations and Data

To remove virt-top configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge virt-top

Remove virt-top configuration, data, and all of its dependencies

We can use the following command to remove virt-top configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge virt-top

References

Summary

In this tutorial we learn how to install virt-top package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.