How To Install lighttpd-mod-cml on Ubuntu 18.04

In this tutorial we learn how to install lighttpd-mod-cml on Ubuntu 18.04. lighttpd-mod-cml is cache meta language module for lighttpd

Introduction

In this tutorial we learn how to install lighttpd-mod-cml on Ubuntu 18.04.

What is lighttpd-mod-cml

lighttpd-mod-cml is:

With the cache meta language, it is possible to describe to the dependencies of a cached file to its source files/scripts. For the cache files, the scripting language Lua is used.

THIS MODULE IS OBSOLETED AND WILL BE REMOVED IN LIGHTTPD 2.0. USE mod_magnet INSTEAD.

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

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

sudo apt-get update

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

sudo apt-get -y install lighttpd-mod-cml

Install lighttpd-mod-cml Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lighttpd-mod-cml using apt by running the following command:

sudo apt -y install lighttpd-mod-cml

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

sudo aptitude -y install lighttpd-mod-cml

How To Uninstall lighttpd-mod-cml on Ubuntu 18.04

To uninstall only the lighttpd-mod-cml package we can use the following command:

sudo apt-get remove lighttpd-mod-cml

Uninstall lighttpd-mod-cml And Its Dependencies

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

sudo apt-get -y autoremove lighttpd-mod-cml

Remove lighttpd-mod-cml Configurations and Data

To remove lighttpd-mod-cml configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge lighttpd-mod-cml

Remove lighttpd-mod-cml configuration, data, and all of its dependencies

We can use the following command to remove lighttpd-mod-cml configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lighttpd-mod-cml

References

Summary

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