How To Install libglu1-mesa-dev on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libglu1-mesa-dev
on Ubuntu 22.04.
What is libglu1-mesa-dev
libglu1-mesa-dev is:
Includes headers and static libraries for compiling programs with GLU.
For a complete description of GLU, please look at the libglu1-mesa package.
There are three methods to install libglu1-mesa-dev
on Ubuntu 22.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 libglu1-mesa-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libglu1-mesa-dev
using apt-get
by running the following command:
sudo apt-get -y install libglu1-mesa-dev
Install libglu1-mesa-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libglu1-mesa-dev
using apt
by running the following command:
sudo apt -y install libglu1-mesa-dev
Install libglu1-mesa-dev 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 libglu1-mesa-dev
using aptitude
by running the following command:
sudo aptitude -y install libglu1-mesa-dev
How To Uninstall libglu1-mesa-dev on Ubuntu 22.04
To uninstall only the libglu1-mesa-dev
package we can use the following command:
sudo apt-get remove libglu1-mesa-dev
Uninstall libglu1-mesa-dev And Its Dependencies
To uninstall libglu1-mesa-dev
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libglu1-mesa-dev
Remove libglu1-mesa-dev Configurations and Data
To remove libglu1-mesa-dev
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libglu1-mesa-dev
Remove libglu1-mesa-dev configuration, data, and all of its dependencies
We can use the following command to remove libglu1-mesa-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libglu1-mesa-dev
References
Summary
In this tutorial we learn how to install libglu1-mesa-dev
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.