How To Install libudev-dev on Ubuntu 20.04

In this tutorial we learn how to install libudev-dev on Ubuntu 20.04. libudev-dev is libudev development files libudev development files

Introduction

In this tutorial we learn how to install libudev-dev on Ubuntu 20.04.

What is libudev-dev

libudev-dev is:

This package contains the files needed for developing applications that use libudev.

Package: libudev-dev Architecture: amd64 Version: 245.4-4ubuntu3 Multi-Arch: same Priority: optional Section: admin Source: systemd Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian systemd Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 236 Depends: libudev1 (= 245.4-4ubuntu3) Filename: pool/main/s/systemd/libudev-dev_245.4-4ubuntu3_amd64.deb Size: 19676 MD5sum: bd4bafb28f9e9891a332b498563bf139 SHA1: ba8af37c2b3f903a3e035dd0963b2a286a95d830 SHA256: ee7f1d80a984f62669f7b4ae77522afbb4b5ba38e59b0db11806a867bc2a69cb Homepage: https://www.freedesktop.org/wiki/Software/systemd Description-en: libudev development files This package contains the files needed for developing applications that use libudev.

There are three methods to install libudev-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 libudev-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 libudev-dev using apt-get by running the following command:

sudo apt-get -y install libudev-dev

Install libudev-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libudev-dev

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

sudo aptitude -y install libudev-dev

How To Uninstall libudev-dev on Ubuntu 20.04

To uninstall only the libudev-dev package we can use the following command:

sudo apt-get remove libudev-dev

Uninstall libudev-dev And Its Dependencies

To uninstall libudev-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libudev-dev

Remove libudev-dev Configurations and Data

To remove libudev-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libudev-dev

Remove libudev-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libudev-dev

References

Summary

In this tutorial we learn how to install libudev-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.