How To Install libdrm-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libdrm-dev
on Ubuntu 20.04.
What is libdrm-dev
libdrm-dev is:
This library implements the userspace interface to the kernel DRM services. DRM stands for “Direct Rendering Manager”, which is the kernelspace portion of the “Direct Rendering Infrastructure” (DRI). The DRI is currently used on Linux to provide hardware-accelerated OpenGL drivers.
This package provides the development environment for libdrm.
Package: libdrm-dev Architecture: amd64 Version: 2.4.101-2 Multi-Arch: same Priority: optional Section: libdevel Source: libdrm Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 643 Depends: libdrm2 (= 2.4.101-2), libdrm-intel1 (= 2.4.101-2), libdrm-radeon1 (= 2.4.101-2), libdrm-nouveau2 (= 2.4.101-2), libdrm-amdgpu1 (= 2.4.101-2) Filename: pool/main/libd/libdrm/libdrm-dev_2.4.101-2_amd64.deb Size: 125648 MD5sum: 4d93ae30ac81b6f20fa4b97a28d8a328 SHA1: 9d6cc8ffc31130bc6d2596f79e9a3657290e50c3 SHA256: 687eee17f0f7a4270b7dcea270df87cb64c7ac8de81fd057a87de2b4f284249b Homepage: https://cgit.freedesktop.org/mesa/drm/ Description-en: Userspace interface to kernel DRM services – development files This library implements the userspace interface to the kernel DRM services. DRM stands for “Direct Rendering Manager”, which is the kernelspace portion of the “Direct Rendering Infrastructure” (DRI). The DRI is currently used on Linux to provide hardware-accelerated OpenGL drivers.
This package provides the development environment for libdrm.
There are three methods to install libdrm-dev
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 libdrm-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 libdrm-dev
using apt-get
by running the following command:
sudo apt-get -y install libdrm-dev
Install libdrm-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdrm-dev
using apt
by running the following command:
sudo apt -y install libdrm-dev
Install libdrm-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 libdrm-dev
using aptitude
by running the following command:
sudo aptitude -y install libdrm-dev
How To Uninstall libdrm-dev on Ubuntu 20.04
To uninstall only the libdrm-dev
package we can use the following command:
sudo apt-get remove libdrm-dev
Uninstall libdrm-dev And Its Dependencies
To uninstall libdrm-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdrm-dev
Remove libdrm-dev Configurations and Data
To remove libdrm-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdrm-dev
Remove libdrm-dev configuration, data, and all of its dependencies
We can use the following command to remove libdrm-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdrm-dev
References
Summary
In this tutorial we learn how to install libdrm-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.