How To Install libosmesa6 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libosmesa6 on Ubuntu 20.04.
What is libosmesa6
libosmesa6 is:
OSmesa is a Mesa extension that allows programs to render to an off-screen buffer using the OpenGL API without having to create a rendering context on an X Server. It uses a pure software renderer.
This package provides both 16-bit and 32-bit versions of the off-screen renderer which do not require external libraries to work.
Package: libosmesa6 Architecture: amd64 Version: 20.0.4-2ubuntu1 Multi-Arch: same Priority: extra Section: libs Source: mesa Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 10339 Depends: libc6 (>= 2.29), libgcc-s1 (>= 3.4), libglapi-mesa (= 20.0.4-2ubuntu1), libllvm9 (>= 1:9~svn298832-1~), libstdc++6 (>= 5.2), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.1.4) Filename: pool/main/m/mesa/libosmesa6_20.0.4-2ubuntu1_amd64.deb Size: 2650436 MD5sum: b34fd458fb2f198946a9efe39b61c293 SHA1: e394dae1f2566862efe79c611becfa8f3d693d9f SHA256: 227f49dc1c38e96160ab8f63ec42564e5408e96a8beaadbafa2959558dd2bc78 Homepage: https://mesa3d.org/ Description-en: Mesa Off-screen rendering extension OSmesa is a Mesa extension that allows programs to render to an off-screen buffer using the OpenGL API without having to create a rendering context on an X Server. It uses a pure software renderer.
This package provides both 16-bit and 32-bit versions of the off-screen renderer which do not require external libraries to work.
There are three methods to install libosmesa6 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 libosmesa6 Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libosmesa6 using apt-get by running the following command:
sudo apt-get -y install libosmesa6
Install libosmesa6 Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libosmesa6 using apt by running the following command:
sudo apt -y install libosmesa6
Install libosmesa6 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 libosmesa6 using aptitude by running the following command:
sudo aptitude -y install libosmesa6
How To Uninstall libosmesa6 on Ubuntu 20.04
To uninstall only the libosmesa6 package we can use the following command:
sudo apt-get remove libosmesa6
Uninstall libosmesa6 And Its Dependencies
To uninstall libosmesa6 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libosmesa6
Remove libosmesa6 Configurations and Data
To remove libosmesa6 configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libosmesa6
Remove libosmesa6 configuration, data, and all of its dependencies
We can use the following command to remove libosmesa6 configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libosmesa6
References
Summary
In this tutorial we learn how to install libosmesa6 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.