How To Install virt-what on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 367 words
Introduction
In this tutorial we learn how to install virt-what on Ubuntu.
What is virt-what
virt-what is:
Virt-what is a shell script which can be used to detect if the program is running in a virtual machine (VM).
The program prints out a list of “facts” about the virtual machine, derived from heuristics. One fact is printed per line.
There are three methods to install virt-what on Ubuntu. 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-what 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-what using apt-get by running the following command:
sudo apt-get -y install virt-what
Install virt-what Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install virt-what using apt by running the following command:
sudo apt -y install virt-what
Install virt-what 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-what using aptitude by running the following command:
sudo aptitude -y install virt-what
How To Uninstall virt-what on Ubuntu
To uninstall only the virt-what package we can use the following command:
sudo apt-get remove virt-what
Uninstall virt-what And Its Dependencies
To uninstall virt-what and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove virt-what
Remove virt-what Configurations and Data
To remove virt-what configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge virt-what
Remove virt-what configuration, data, and all of its dependencies
We can use the following command to remove virt-what configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virt-what
Dependencies
virt-what have the following dependencies:
References
Summary
In this tutorial we learn how to install virt-what package on Ubuntu using different package management tools: apt, apt-get and aptitude.