How To Install libgl1 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgl1
on Ubuntu 20.04.
What is libgl1
libgl1 is:
This is an implementation of the vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors on a per-screen basis.
This package contains support for old libGL for compatibility reasons. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: libgl1 Architecture: amd64 Version: 1.3.1-1 Multi-Arch: same Priority: extra Section: libs Source: libglvnd Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 657 Depends: libc6 (>= 2.14), libglvnd0 (= 1.3.1-1), libglx0 (= 1.3.1-1) Filename: pool/main/libg/libglvnd/libgl1_1.3.1-1_amd64.deb Size: 87548 MD5sum: 2eb6e1fa6ad99050cfbd10b0cd811de9 SHA1: 80f0751eee20fc81557ff1265f2c94d7cd32a048 SHA256: f2da8b66bfd99a33bcdb727dc9efe4beb6afce06a2b87be662b1280f9449a5b8 Homepage: https://gitlab.freedesktop.org/glvnd/libglvnd Description-en: Vendor neutral GL dispatch library – legacy GL support This is an implementation of the vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors on a per-screen basis.
This package contains support for old libGL for compatibility reasons. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install libgl1
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 libgl1 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgl1
using apt-get
by running the following command:
sudo apt-get -y install libgl1
Install libgl1 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgl1
using apt
by running the following command:
sudo apt -y install libgl1
Install libgl1 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 libgl1
using aptitude
by running the following command:
sudo aptitude -y install libgl1
How To Uninstall libgl1 on Ubuntu 20.04
To uninstall only the libgl1
package we can use the following command:
sudo apt-get remove libgl1
Uninstall libgl1 And Its Dependencies
To uninstall libgl1
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgl1
Remove libgl1 Configurations and Data
To remove libgl1
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgl1
Remove libgl1 configuration, data, and all of its dependencies
We can use the following command to remove libgl1
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgl1
References
Summary
In this tutorial we learn how to install libgl1
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.