How To Install python-keyczar on Ubuntu 18.04

In this tutorial we learn how to install python-keyczar on Ubuntu 18.04. python-keyczar is toolkit for safe and simple cryptography for Python

Introduction

In this tutorial we learn how to install python-keyczar on Ubuntu 18.04.

What is python-keyczar

python-keyczar is:

Keyczar is an open source cryptographic toolkit designed to make it easier and safer for developers to use cryptography in their applications. Keyczar supports authentication and encryption with both symmetric and asymmetric keys. Some features of Keyczar include:

  • A simple API
  • Key rotation and versioning
  • Safe default algorithms, modes, and key lengths
  • Automated generation of initialization vectors and ciphertext signatures
  • Java, Python, and C++ implementations

This package provides the Python implementation of Keyczar.

There are three methods to install python-keyczar 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 python-keyczar Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-keyczar

Install python-keyczar Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-keyczar

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

sudo aptitude -y install python-keyczar

How To Uninstall python-keyczar on Ubuntu 18.04

To uninstall only the python-keyczar package we can use the following command:

sudo apt-get remove python-keyczar

Uninstall python-keyczar And Its Dependencies

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

sudo apt-get -y autoremove python-keyczar

Remove python-keyczar Configurations and Data

To remove python-keyczar configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-keyczar

Remove python-keyczar configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-keyczar

References

Summary

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