How To Install cpm on Debian 10

Learn how to install cpm on Debian 10 with this tutorial. cpm is Curses based password manager using PGP-encryption

Introduction

In this tutorial we learn how to install cpm on Debian 10.

What is cpm

cpm is:

This program is a ncurses based console tool to manage passwords and store them public key encrypted in a file - even for more than one person. The encryption is handled via GnuPG so the programs data can be accessed via gpg as well, in case you want to have a look inside. The data is stored as zlib compressed XML so it’s even possible to reuse the data for some other purpose.

The software uses CDK (ncurses) to handle the user interface, libxml2 to store the information, the zlib library to compress the data and the library GpgMe to encrypt and decrypt the data securely.

There are three methods to install cpm on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install cpm Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install cpm

Install cpm Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cpm using apt by running the following command:

sudo apt -y install cpm

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

sudo aptitude -y install cpm

How To Uninstall cpm on Debian 10

To uninstall only the cpm package we can use the following command:

sudo apt-get remove cpm

Uninstall cpm And Its Dependencies

To uninstall cpm and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove cpm

Remove cpm Configurations and Data

To remove cpm configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge cpm

Remove cpm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cpm

Dependencies

cpm have the following dependencies:

References

Summary

In this tutorial we learn how to install cpm package on Debian 10 using different package management tools: apt, apt-get and aptitude.