How To Install udev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install udev
on Ubuntu 20.04.
What is udev
udev is:
udev is a daemon which dynamically creates and removes device nodes from /dev/, handles hotplug events and loads drivers at boot time. Task: minimal
Package: udev Architecture: amd64 Version: 245.4-4ubuntu3 Multi-Arch: foreign Priority: important 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: 9111 Depends: libacl1 (>= 2.2.23), libblkid1 (>= 2.24), libc6 (>= 2.30), libkmod2 (>= 5~), libselinux1 (>= 2.1.9), adduser, dpkg (>= 1.19.3) | systemd-sysv, libudev1 (= 245.4-4ubuntu3), util-linux (>= 2.27.1) Conflicts: hal Breaks: systemd (« 233-4) Replaces: systemd (« 233-4) Filename: pool/main/s/systemd/udev_245.4-4ubuntu3_amd64.deb Size: 1361960 MD5sum: a6d339884c839d7b91106b8f9ec20286 SHA1: 5438526a3fe21b96737a5ea891cf716c7745ddf0 SHA256: 1ae6d5429358d184a0d6bbc43cbb62c392e0de644ce81128f69787754c484764 Homepage: https://www.freedesktop.org/wiki/Software/systemd Description-en: /dev/ and hotplug management daemon udev is a daemon which dynamically creates and removes device nodes from /dev/, handles hotplug events and loads drivers at boot time. Task: minimal
There are three methods to install udev
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 udev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install udev
using apt-get
by running the following command:
sudo apt-get -y install udev
Install udev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install udev
using apt
by running the following command:
sudo apt -y install udev
Install udev 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 udev
using aptitude
by running the following command:
sudo aptitude -y install udev
How To Uninstall udev on Ubuntu 20.04
To uninstall only the udev
package we can use the following command:
sudo apt-get remove udev
Uninstall udev And Its Dependencies
To uninstall udev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove udev
Remove udev Configurations and Data
To remove udev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge udev
Remove udev configuration, data, and all of its dependencies
We can use the following command to remove udev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge udev
References
Summary
In this tutorial we learn how to install udev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.