How To Install libcryptsetup-dev on Ubuntu 20.04

In this tutorial we learn how to install libcryptsetup-dev on Ubuntu 20.04. libcryptsetup-dev is disk encryption support - development files disk encryption support - development files disk encryption support - development files

Introduction

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

What is libcryptsetup-dev

libcryptsetup-dev is:

Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.

This package provides the libcryptsetup development files.

Package: libcryptsetup-dev Architecture: amd64 Version: 2:2.2.2-3ubuntu2.2 Multi-Arch: same Priority: optional Section: libdevel Source: cryptsetup Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Cryptsetup Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 166 Depends: libcryptsetup12 (= 2:2.2.2-3ubuntu2.2) Filename: pool/main/c/cryptsetup/libcryptsetup-dev_2.2.2-3ubuntu2.2_amd64.deb Size: 20556 MD5sum: c73f94d3fd0188573798f3df45bd1970 SHA1: f174b4f354637d24eaa39da539bea1ed19698a2c SHA256: 27cf441bd746b9eab4549e277e96bee22f83477f4deec074d3e51a1ab8701581 SHA512: f4d2e17450ed64e715f1780ac86bb3b769d1298d0f4c5df9d1d50321f38658c49a6a19c0881683e73979252641b786792b57876e761f27b0f472c380012870c6 Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - development files Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.

This package provides the libcryptsetup development files.

Package: libcryptsetup-dev Architecture: amd64 Version: 2:2.2.2-3ubuntu2 Multi-Arch: same Priority: optional Section: libdevel Source: cryptsetup Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Cryptsetup Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 166 Depends: libcryptsetup12 (= 2:2.2.2-3ubuntu2) Filename: pool/main/c/cryptsetup/libcryptsetup-dev_2.2.2-3ubuntu2_amd64.deb Size: 20552 MD5sum: 65eef66e593b4851fd49e69b9e87fc89 SHA1: 7dfb698dc4246f0cd45aee7a5f289f7b19d973de SHA256: 247bb9e347bc91d73a58cee817c434c9a851e89ae82090a31250ee1f7ee22969 Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - development files Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support.

This package provides the libcryptsetup development files.

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

sudo apt-get -y install libcryptsetup-dev

Install libcryptsetup-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcryptsetup-dev

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

sudo aptitude -y install libcryptsetup-dev

How To Uninstall libcryptsetup-dev on Ubuntu 20.04

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

sudo apt-get remove libcryptsetup-dev

Uninstall libcryptsetup-dev And Its Dependencies

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

sudo apt-get -y autoremove libcryptsetup-dev

Remove libcryptsetup-dev Configurations and Data

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

sudo apt-get -y purge libcryptsetup-dev

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

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

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

References

Summary

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