How To Install cryptsetup-bin on Ubuntu 20.04
Introduction
In this tutorial we learn how to install cryptsetup-bin
on Ubuntu 20.04.
What is cryptsetup-bin
cryptsetup-bin 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 cryptsetup, cryptsetup-reencrypt, integritysetup and veritysetup. Task: server, cloud-image, ubuntu-live, kubuntu-desktop, kubuntu-full, xubuntu-live, lubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-live
Package: cryptsetup-bin Architecture: amd64 Version: 2:2.2.2-3ubuntu2.2 Multi-Arch: foreign Priority: optional Section: admin 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: 544 Depends: libblkid1 (>= 2.24.2), libc6 (>= 2.25), libcryptsetup12 (>= 2:2.2), libpopt0 (>= 1.14), libuuid1 (>= 2.16) Filename: pool/main/c/cryptsetup/cryptsetup-bin_2.2.2-3ubuntu2.2_amd64.deb Size: 118680 MD5sum: 9569383a98d343767178c9eb64257c77 SHA1: 253262529999d18b91ae1c54aa260481789bcdda SHA256: a992d446f00b8d75a029441aef8bbbbf1d34a5c63a54f0abd94732d0f52aa144 SHA512: 7214aa885071bb156384f7263799567d8a4ddff4584acad950292a8008004fe09823cb10131910c5d6dd97be6b0bd7e1e18d0a4a4a6076037e9ac2487744609f Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - command line tools 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 cryptsetup, cryptsetup-reencrypt, integritysetup and veritysetup. Task: server, cloud-image, ubuntu-live, kubuntu-desktop, kubuntu-full, xubuntu-live, lubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-live
Package: cryptsetup-bin Architecture: amd64 Version: 2:2.2.2-3ubuntu2 Multi-Arch: foreign Priority: optional Section: admin 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: 544 Depends: libblkid1 (>= 2.24.2), libc6 (>= 2.25), libcryptsetup12 (>= 2:2.2), libpopt0 (>= 1.14), libuuid1 (>= 2.16) Filename: pool/main/c/cryptsetup/cryptsetup-bin_2.2.2-3ubuntu2_amd64.deb Size: 118800 MD5sum: 2098224dd779d87d4ba7fe10f74178e5 SHA1: c568c588271178b2d12d4b4393928defc587f1ee SHA256: ca9ef7040baa2497ea98c42e901e80947b9a31f314c3c8d1bfdcbb6686b9e2ee Homepage: https://gitlab.com/cryptsetup/cryptsetup Description-en: disk encryption support - command line tools 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 cryptsetup, cryptsetup-reencrypt, integritysetup and veritysetup. Task: server, cloud-image, ubuntu-live, kubuntu-desktop, kubuntu-full, xubuntu-live, lubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-live
There are three methods to install cryptsetup-bin
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 cryptsetup-bin Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install cryptsetup-bin
using apt-get
by running the following command:
sudo apt-get -y install cryptsetup-bin
Install cryptsetup-bin Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install cryptsetup-bin
using apt
by running the following command:
sudo apt -y install cryptsetup-bin
Install cryptsetup-bin 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 cryptsetup-bin
using aptitude
by running the following command:
sudo aptitude -y install cryptsetup-bin
How To Uninstall cryptsetup-bin on Ubuntu 20.04
To uninstall only the cryptsetup-bin
package we can use the following command:
sudo apt-get remove cryptsetup-bin
Uninstall cryptsetup-bin And Its Dependencies
To uninstall cryptsetup-bin
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove cryptsetup-bin
Remove cryptsetup-bin Configurations and Data
To remove cryptsetup-bin
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge cryptsetup-bin
Remove cryptsetup-bin configuration, data, and all of its dependencies
We can use the following command to remove cryptsetup-bin
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cryptsetup-bin
References
Summary
In this tutorial we learn how to install cryptsetup-bin
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.