How To Install cleancss on Kali Linux

In this tutorial we learn how to install cleancss on Kali Linux. cleancss is Tool for minifying CSS files

Introduction

In this tutorial we learn how to install cleancss on Kali Linux.

What is cleancss

cleancss is:

Clean-css is a Node.js module for minifying CSS files. It does the same job as YUI Compressor’s CSS minifier, but much faster thanks to many speed optimizations and Node.js’ V8 engine.

The cleancss tool is a reference implementation for the Clean-css Node.js module.

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

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

sudo apt-get update

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

sudo apt-get -y install cleancss

Install cleancss Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cleancss

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

sudo aptitude -y install cleancss

How To Uninstall cleancss on Kali Linux

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

sudo apt-get remove cleancss

Uninstall cleancss And Its Dependencies

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

sudo apt-get -y autoremove cleancss

Remove cleancss Configurations and Data

To remove cleancss configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge cleancss

Remove cleancss configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cleancss

Dependencies

cleancss have the following dependencies:

References

Summary

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