How To Install libcryptokit-ocaml-dev on Ubuntu 18.04

In this tutorial we learn how to install libcryptokit-ocaml-dev on Ubuntu 18.04. libcryptokit-ocaml-dev is cryptographic algorithm library for OCaml - development

Introduction

In this tutorial we learn how to install libcryptokit-ocaml-dev on Ubuntu 18.04.

What is libcryptokit-ocaml-dev

libcryptokit-ocaml-dev is:

The Cryptokit library for Objective Caml provides a variety of cryptographic primitives that can be used to implement cryptographic protocols in security-sensitive applications. The primitives provided include:

  • Symmetric-key ciphers: AES, DES, Triple-DES, ARCfour, in ECB, CBC, CFB and OFB modes.
  • Public-key cryptography: RSA encryption, Diffie-Hellman key agreement.
  • Hash functions and MACs: SHA-1, MD5, and MACs based on AES and DES.
  • Random number generation.
  • Encodings and compression: base 64, hexadecimal, Zlib compression.

Additional ciphers and hashes can easily be used in conjunction with the library. In particular, basic mechanisms such as chaining modes, output buffering, and padding are provided by generic classes that can easily be composed with user-provided ciphers. More generally, the library promotes a “Lego”-like style of constructing and composing transformations over character streams.

This package provides static libraries, interfaces, and documentation for Cryptokit.

There are three methods to install libcryptokit-ocaml-dev 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 libcryptokit-ocaml-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libcryptokit-ocaml-dev

Install libcryptokit-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcryptokit-ocaml-dev using apt by running the following command:

sudo apt -y install libcryptokit-ocaml-dev

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

sudo aptitude -y install libcryptokit-ocaml-dev

How To Uninstall libcryptokit-ocaml-dev on Ubuntu 18.04

To uninstall only the libcryptokit-ocaml-dev package we can use the following command:

sudo apt-get remove libcryptokit-ocaml-dev

Uninstall libcryptokit-ocaml-dev And Its Dependencies

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

sudo apt-get -y autoremove libcryptokit-ocaml-dev

Remove libcryptokit-ocaml-dev Configurations and Data

To remove libcryptokit-ocaml-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcryptokit-ocaml-dev

Remove libcryptokit-ocaml-dev configuration, data, and all of its dependencies

We can use the following command to remove libcryptokit-ocaml-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcryptokit-ocaml-dev

References

Summary

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