How To Install clisp on Ubuntu 18.04

In this tutorial we learn how to install clisp on Ubuntu 18.04. clisp is GNU CLISP, a Common Lisp implementation

Introduction

In this tutorial we learn how to install clisp on Ubuntu 18.04.

What is clisp

clisp is:

ANSI Common Lisp is a high-level, general-purpose programming language. GNU CLISP is a Common Lisp implementation by Bruno Haible of Karlsruhe University and Michael Stoll of Munich University, both in Germany. It mostly supports the Lisp described in the ANSI Common Lisp standard. It runs on most Unix workstations (GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, Tru64, HP-UX, BeOS, NeXTstep, IRIX, AIX and others) and on other systems (Windows NT/2000/XP, Windows 95/98/ME) and needs only 4 MB of RAM.

It is Free Software and may be distributed under the terms of GNU GPL, while it is possible to distribute commercial proprietary applications compiled with GNU CLISP.

The user interface comes in English, German, French, Spanish, Dutch, Russian and Danish, and can be changed at run time. GNU CLISP includes an interpreter, a compiler, a debugger, CLOS, MOP, a foreign language interface, sockets, i18n, fast bignums and more. An X11 interface is available through CLX, Garnet, CLUE/CLIO. GNU CLISP runs Maxima, ACL2 and many other Common Lisp packages.

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

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

sudo apt-get update

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

sudo apt-get -y install clisp

Install clisp Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install clisp using apt by running the following command:

sudo apt -y install clisp

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

sudo aptitude -y install clisp

How To Uninstall clisp on Ubuntu 18.04

To uninstall only the clisp package we can use the following command:

sudo apt-get remove clisp

Uninstall clisp And Its Dependencies

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

sudo apt-get -y autoremove clisp

Remove clisp Configurations and Data

To remove clisp configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge clisp

Remove clisp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge clisp

References

Summary

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