How To Install libcss-minifier-perl on Kali Linux

In this tutorial we learn how to install libcss-minifier-perl on Kali Linux. libcss-minifier-perl is Perl extension for minifying CSS

Introduction

In this tutorial we learn how to install libcss-minifier-perl on Kali Linux.

What is libcss-minifier-perl

libcss-minifier-perl is:

CSS::Minifier removes unnecessary whitespace from CSS. The primary requirement developing this module is to not break working stylesheets: if working CSS is in input then working CSS is output. The Mac/Internet Explorer comment hack will be minimized but not stripped and so will continue to function.

This module understands space, horizontal tab, new line, carriage return, and form feed characters to be whitespace. Any other characters that may be considered whitespace are not minimized. These other characters include paragraph separator and vertical tab.

For static CSS files, it is recommended that you minify during the build stage of web deployment. If you minify on-the-fly then it might be a good idea to cache the minified file. Minifying static files on-the-fly repeatedly is wasteful.

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

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

sudo apt-get update

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

sudo apt-get -y install libcss-minifier-perl

Install libcss-minifier-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcss-minifier-perl using apt by running the following command:

sudo apt -y install libcss-minifier-perl

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

sudo aptitude -y install libcss-minifier-perl

How To Uninstall libcss-minifier-perl on Kali Linux

To uninstall only the libcss-minifier-perl package we can use the following command:

sudo apt-get remove libcss-minifier-perl

Uninstall libcss-minifier-perl And Its Dependencies

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

sudo apt-get -y autoremove libcss-minifier-perl

Remove libcss-minifier-perl Configurations and Data

To remove libcss-minifier-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libcss-minifier-perl

Remove libcss-minifier-perl configuration, data, and all of its dependencies

We can use the following command to remove libcss-minifier-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcss-minifier-perl

Dependencies

libcss-minifier-perl have the following dependencies:

References

Summary

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