How To Install clearsilver-dev on Ubuntu 18.04

In this tutorial we learn how to install clearsilver-dev on Ubuntu 18.04. clearsilver-dev is headers and static library for clearsilver

Introduction

In this tutorial we learn how to install clearsilver-dev on Ubuntu 18.04.

What is clearsilver-dev

clearsilver-dev is:

Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier.

This package contains the C headers, the static library and the cstest binary for deverlopers.

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

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

sudo apt-get update

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

sudo apt-get -y install clearsilver-dev

Install clearsilver-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install clearsilver-dev

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

sudo aptitude -y install clearsilver-dev

How To Uninstall clearsilver-dev on Ubuntu 18.04

To uninstall only the clearsilver-dev package we can use the following command:

sudo apt-get remove clearsilver-dev

Uninstall clearsilver-dev And Its Dependencies

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

sudo apt-get -y autoremove clearsilver-dev

Remove clearsilver-dev Configurations and Data

To remove clearsilver-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge clearsilver-dev

Remove clearsilver-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge clearsilver-dev

References

Summary

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