How To Install cl-named-readtables on Ubuntu 22.04

In this tutorial we learn how to install cl-named-readtables on Ubuntu 22.04. cl-named-readtables is Common Lisp library that creates namespaces for named readtables

Introduction

In this tutorial we learn how to install cl-named-readtables on Ubuntu 22.04.

What is cl-named-readtables

cl-named-readtables is:

Named-Readtables is a library that provides a namespace for readtables akin to the already-existing namespace of packages in Common Lisp. In particular:

  • you can associate readtables with names, and retrieve readtables by names;

  • you can associate source files with readtable names, and be sure that the right readtable is active when compiling/loading the file;

  • similarly, your development environment now has a chance to automatically determine what readtable should be active while processing source forms on interactive commands. (E.g. think of C-c C-c in Slime (yet to be done))

It follows that Named-Readtables is a facility for using readtables in a localized way.

Additionally, it also attempts to become a facility for using readtables in a modular way. In particular:

  • it provides a macro to specify the content of a readtable at a glance;

  • it makes it possible to use multiple inheritance between readtables.

There are three methods to install cl-named-readtables on Ubuntu 22.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 cl-named-readtables 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-named-readtables using apt-get by running the following command:

sudo apt-get -y install cl-named-readtables

Install cl-named-readtables Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cl-named-readtables

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

sudo aptitude -y install cl-named-readtables

How To Uninstall cl-named-readtables on Ubuntu 22.04

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

sudo apt-get remove cl-named-readtables

Uninstall cl-named-readtables And Its Dependencies

To uninstall cl-named-readtables and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove cl-named-readtables

Remove cl-named-readtables Configurations and Data

To remove cl-named-readtables configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge cl-named-readtables

Remove cl-named-readtables configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cl-named-readtables

References

Summary

In this tutorial we learn how to install cl-named-readtables package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.