How To Install libmount-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libmount-dev
on Ubuntu 20.04.
What is libmount-dev
libmount-dev is:
This device mounting library is used by mount and umount helpers.
This package contains the development environment for the mount library.
Package: libmount-dev Architecture: amd64 Version: 2.34-0.1ubuntu9 Multi-Arch: same Priority: extra Section: libdevel Source: util-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: LaMont Jones [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 926 Depends: libc6-dev | libc-dev, libmount1 (= 2.34-0.1ubuntu9), libblkid-dev Filename: pool/main/u/util-linux/libmount-dev_2.34-0.1ubuntu9_amd64.deb Size: 176168 MD5sum: 930cda60b48d245b721d2e634f698ab3 SHA1: 23be16735ad7da2b8ca71150a0f1f3f5bf46432a SHA256: a1fec3344ae963599ccfb763c1af1e8a90e88eab4ec30a7ab69345b1fdb0a9cd Description-en: device mounting library - headers and static libraries This device mounting library is used by mount and umount helpers.
This package contains the development environment for the mount library.
There are three methods to install libmount-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 libmount-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 libmount-dev
using apt-get
by running the following command:
sudo apt-get -y install libmount-dev
Install libmount-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmount-dev
using apt
by running the following command:
sudo apt -y install libmount-dev
Install libmount-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 libmount-dev
using aptitude
by running the following command:
sudo aptitude -y install libmount-dev
How To Uninstall libmount-dev on Ubuntu 20.04
To uninstall only the libmount-dev
package we can use the following command:
sudo apt-get remove libmount-dev
Uninstall libmount-dev And Its Dependencies
To uninstall libmount-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libmount-dev
Remove libmount-dev Configurations and Data
To remove libmount-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libmount-dev
Remove libmount-dev configuration, data, and all of its dependencies
We can use the following command to remove libmount-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmount-dev
References
Summary
In this tutorial we learn how to install libmount-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.