How To Install luksipc on Debian 9
Introduction
In this tutorial we learn how to install luksipc on Debian 9.
What is luksipc
luksipc is:
luksipc is a tool to convert (unencrypted) block devices to (encrypted) LUKS devices in-place (therefore it’s name LUKS in-place conversion). This means the conversion is performed without the need of copying all data somewhere, recreating the whole disk (i.e. create a LUKS device, create a new filesystem on the mapped LUKS device, copy all data back). Instead, the process is reduced to:
- Unmounting the filesystem
- Resizing the filesystem to shrink about 10 megabytes (2048 kB is the current LUKS header size – but do not trust this value, it has changed in the past!)
- Performing luksipc
- Adding custom keys to the LUKS keyring
There are three methods to install luksipc on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install luksipc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install luksipc using apt-get by running the following command:
sudo apt-get -y install luksipc
Install luksipc Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install luksipc using apt by running the following command:
sudo apt -y install luksipc
Install luksipc 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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install luksipc using aptitude by running the following command:
sudo aptitude -y install luksipc
How To Uninstall luksipc on Debian 9
To uninstall only the luksipc package we can use the following command:
sudo apt-get remove luksipc
Uninstall luksipc And Its Dependencies
To uninstall luksipc and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove luksipc
Remove luksipc Configurations and Data
To remove luksipc configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge luksipc
Remove luksipc configuration, data, and all of its dependencies
We can use the following command to remove luksipc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge luksipc
Dependencies
luksipc have the following dependencies:
References
Summary
In this tutorial we learn how to install luksipc package on Debian 9 using different package management tools: apt, apt-get and aptitude.