How To Install virtualbox-qt on Ubuntu 18.04

In this tutorial we learn how to install virtualbox-qt on Ubuntu 18.04. virtualbox-qt is x86 virtualization solution - Qt based user interface

Introduction

In this tutorial we learn how to install virtualbox-qt on Ubuntu 18.04.

What is virtualbox-qt

virtualbox-qt is:

VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.

This package provides the Qt based graphical user interface for VirtualBox.

There are three methods to install virtualbox-qt on Ubuntu 18.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 virtualbox-qt Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install virtualbox-qt

Install virtualbox-qt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install virtualbox-qt

Install virtualbox-qt 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 virtualbox-qt using aptitude by running the following command:

sudo aptitude -y install virtualbox-qt

How To Uninstall virtualbox-qt on Ubuntu 18.04

To uninstall only the virtualbox-qt package we can use the following command:

sudo apt-get remove virtualbox-qt

Uninstall virtualbox-qt And Its Dependencies

To uninstall virtualbox-qt and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove virtualbox-qt

Remove virtualbox-qt Configurations and Data

To remove virtualbox-qt configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge virtualbox-qt

Remove virtualbox-qt configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge virtualbox-qt

References

Summary

In this tutorial we learn how to install virtualbox-qt package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.