How To Install libsystemd-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libsystemd-dev
on Ubuntu 20.04.
What is libsystemd-dev
libsystemd-dev is:
The libsystemd0 library provides interfaces to various systemd components.
This package contains the development files.
Package: libsystemd-dev Architecture: amd64 Version: 245.4-4ubuntu3 Multi-Arch: same Priority: optional Section: libdevel 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: 952 Depends: libsystemd0 (= 245.4-4ubuntu3) Filename: pool/main/s/systemd/libsystemd-dev_245.4-4ubuntu3_amd64.deb Size: 246056 MD5sum: 924bf78d31623ff85009477c0902617e SHA1: c6715e8c4b557bd7ba188b2a6dbf1a4e72f9a5ff SHA256: b180e5910e1de7ef7dbaa33314665ebfbef0a1c19ecd4afe6c993316e3e3ef71 Homepage: https://www.freedesktop.org/wiki/Software/systemd Description-en: systemd utility library - development files The libsystemd0 library provides interfaces to various systemd components.
This package contains the development files.
There are three methods to install libsystemd-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 libsystemd-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 libsystemd-dev
using apt-get
by running the following command:
sudo apt-get -y install libsystemd-dev
Install libsystemd-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsystemd-dev
using apt
by running the following command:
sudo apt -y install libsystemd-dev
Install libsystemd-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 libsystemd-dev
using aptitude
by running the following command:
sudo aptitude -y install libsystemd-dev
How To Uninstall libsystemd-dev on Ubuntu 20.04
To uninstall only the libsystemd-dev
package we can use the following command:
sudo apt-get remove libsystemd-dev
Uninstall libsystemd-dev And Its Dependencies
To uninstall libsystemd-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libsystemd-dev
Remove libsystemd-dev Configurations and Data
To remove libsystemd-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libsystemd-dev
Remove libsystemd-dev configuration, data, and all of its dependencies
We can use the following command to remove libsystemd-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsystemd-dev
References
Summary
In this tutorial we learn how to install libsystemd-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.