How To Install elpa-ps-ccrypt on Ubuntu 18.04

In this tutorial we learn how to install elpa-ps-ccrypt on Ubuntu 18.04. elpa-ps-ccrypt is Emacs addon for working with files encrypted with ccrypt

Introduction

In this tutorial we learn how to install elpa-ps-ccrypt on Ubuntu 18.04.

What is elpa-ps-ccrypt

elpa-ps-ccrypt is:

elpa-ps-ccrypt provides low-level support for reading, writing, and loading files encrypted with ccrypt. It hooks into the low-level file I/O functions (including write-region and insert-file-contents) so that they automatically encrypt or decrypt a file if the file appears to need it (based on the extension of the file name). Packages like Rmail, VM, GNUS, and Info should be able to work with encrypted files without modification.

There are three methods to install elpa-ps-ccrypt on Ubuntu 18.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 elpa-ps-ccrypt Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install elpa-ps-ccrypt

Install elpa-ps-ccrypt Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install elpa-ps-ccrypt using apt by running the following command:

sudo apt -y install elpa-ps-ccrypt

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

sudo aptitude -y install elpa-ps-ccrypt

How To Uninstall elpa-ps-ccrypt on Ubuntu 18.04

To uninstall only the elpa-ps-ccrypt package we can use the following command:

sudo apt-get remove elpa-ps-ccrypt

Uninstall elpa-ps-ccrypt And Its Dependencies

To uninstall elpa-ps-ccrypt and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove elpa-ps-ccrypt

Remove elpa-ps-ccrypt Configurations and Data

To remove elpa-ps-ccrypt configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge elpa-ps-ccrypt

Remove elpa-ps-ccrypt configuration, data, and all of its dependencies

We can use the following command to remove elpa-ps-ccrypt configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge elpa-ps-ccrypt

References

Summary

In this tutorial we learn how to install elpa-ps-ccrypt package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.