How To Install cl-hunchentoot on Kali Linux

In this tutorial we learn how to install cl-hunchentoot on Kali Linux. cl-hunchentoot is Common Lisp web server formerly known as TBNL

Introduction

In this tutorial we learn how to install cl-hunchentoot on Kali Linux.

What is cl-hunchentoot

cl-hunchentoot is:

Hunchentoot is a web server written in Common Lisp and at the same time a toolkit for building dynamic websites. As a stand-alone web server, Hunchentoot is capable of HTTP/1.1 chunking (both directions), persistent connections (keep-alive), and SSL.

Hunchentoot provides facilities like automatic session handling (with and without cookies), logging, customizable error handling, and easy access to GET and POST parameters sent by the client. It does not include functionality to programmatically generate HTML output. For this task you can use any library you like, e.g. (shameless self-plug) CL-WHO or HTML-TEMPLATE.

Hunchentoot talks with its front-end or with the client over TCP/IP sockets and optionally uses multiprocessing to handle several requests at the same time. Therefore, it cannot be implemented completely in portable Common Lisp. It currently works “natively” with LispWorks (which is the main development and testing platform), and additionally on all Lisps which are supported by the compatibility layers usocket and Bordeaux Threads.

Hunchentoot comes with a BSD-style license so you can basically do with it whatever you want.

There are three methods to install cl-hunchentoot on Kali Linux. 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-hunchentoot 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-hunchentoot using apt-get by running the following command:

sudo apt-get -y install cl-hunchentoot

Install cl-hunchentoot Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cl-hunchentoot

Install cl-hunchentoot Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install cl-hunchentoot

How To Uninstall cl-hunchentoot on Kali Linux

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

sudo apt-get remove cl-hunchentoot

Uninstall cl-hunchentoot And Its Dependencies

To uninstall cl-hunchentoot and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove cl-hunchentoot

Remove cl-hunchentoot Configurations and Data

To remove cl-hunchentoot configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge cl-hunchentoot

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

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

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

Dependencies

cl-hunchentoot have the following dependencies:

References

Summary

In this tutorial we learn how to install cl-hunchentoot package on Kali Linux using different package management tools: apt, apt-get and aptitude.