How To Install cl-babel on Debian 9

In this tutorial we learn how to install cl-babel on Debian 9. cl-babel is A charset encoding/decoding library, not unlike GNU libiconv

Introduction

In this tutorial we learn how to install cl-babel on Debian 9.

What is cl-babel

cl-babel is:

Written completely in Common Lisp, not using a foreign library.

It strives to achieve decent performance. Most of the encoding/decoding algorithms have been adapted from Clozure CL’s source.

Another important goal is reusability. Similarly to SBCL, it defines an interface wherein the algorithms can be reused between a variety of data types so long we’re dealing with conversions between octets and unicode code points.

Babel comes with converters between strings and octet vectors but can be easily extended to deal with, e.g., strings and foreign memory, vectors and Closure’s runes, etc…

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

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

sudo apt-get update

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

sudo apt-get -y install cl-babel

Install cl-babel Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cl-babel

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

sudo aptitude -y install cl-babel

How To Uninstall cl-babel on Debian 9

To uninstall only the cl-babel package we can use the following command:

sudo apt-get remove cl-babel

Uninstall cl-babel And Its Dependencies

To uninstall cl-babel and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove cl-babel

Remove cl-babel Configurations and Data

To remove cl-babel configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge cl-babel

Remove cl-babel configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cl-babel

Dependencies

cl-babel have the following dependencies:

References

Summary

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