How To Install waffle-utils on Ubuntu 18.04

In this tutorial we learn how to install waffle-utils on Ubuntu 18.04. waffle-utils is Waffle library (utilities)

Introduction

In this tutorial we learn how to install waffle-utils on Ubuntu 18.04.

What is waffle-utils

waffle-utils is:

A library for selecting an OpenGL API and window system at runtime

This package contains waffle utilities:

  • wflinfo: Creates an OpenGL context and prints information about the created context.

There are three methods to install waffle-utils 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 waffle-utils Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install waffle-utils

Install waffle-utils Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install waffle-utils

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

sudo aptitude -y install waffle-utils

How To Uninstall waffle-utils on Ubuntu 18.04

To uninstall only the waffle-utils package we can use the following command:

sudo apt-get remove waffle-utils

Uninstall waffle-utils And Its Dependencies

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

sudo apt-get -y autoremove waffle-utils

Remove waffle-utils Configurations and Data

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

sudo apt-get -y purge waffle-utils

Remove waffle-utils configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge waffle-utils

References

Summary

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