How To Install libplack-middleware-file-sass-perl on Kali Linux
Introduction
In this tutorial we learn how to install libplack-middleware-file-sass-perl on Kali Linux.
What is libplack-middleware-file-sass-perl
libplack-middleware-file-sass-perl is:
PSGI is a specification to decouple web server environments from web application framework code. Plack is an implementation of PSGI.
Plack::Middleware::File::Sass is a Plack middleware component that works with Plack::App::File or Plack::Middleware::Static to compile Sass templates into CSS stylesheet in every request.
When a request comes in for .css file, this middleware changes the internal path to .sass or .scss, depending on the configuration, in the same directory. If the Sass template is found, a new CSS stylesheet is built on memory and served to the browsers. Otherwise, it falls back to the original .css file in the directory.
This middleware should be very handy for the development. While Sass to CSS rendering is reasonably fast, for the production environment you might want to precompile Sass templates to CSS files on disk and serves them with a real web server like nginx or lighttpd.
Text::Sass provides only a limited Sass implementation, so the Ruby implementation is recommended even when Text::Sass is available.
There are three methods to install libplack-middleware-file-sass-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 libplack-middleware-file-sass-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libplack-middleware-file-sass-perl using apt-get by running the following command:
sudo apt-get -y install libplack-middleware-file-sass-perlInstall libplack-middleware-file-sass-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libplack-middleware-file-sass-perl using apt by running the following command:
sudo apt -y install libplack-middleware-file-sass-perlInstall libplack-middleware-file-sass-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 updateAfter updating apt database, We can install libplack-middleware-file-sass-perl using aptitude by running the following command:
sudo aptitude -y install libplack-middleware-file-sass-perlHow To Uninstall libplack-middleware-file-sass-perl on Kali Linux
To uninstall only the libplack-middleware-file-sass-perl package we can use the following command:
sudo apt-get remove libplack-middleware-file-sass-perlUninstall libplack-middleware-file-sass-perl And Its Dependencies
To uninstall libplack-middleware-file-sass-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libplack-middleware-file-sass-perlRemove libplack-middleware-file-sass-perl Configurations and Data
To remove libplack-middleware-file-sass-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libplack-middleware-file-sass-perlRemove libplack-middleware-file-sass-perl configuration, data, and all of its dependencies
We can use the following command to remove libplack-middleware-file-sass-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libplack-middleware-file-sass-perlDependencies
libplack-middleware-file-sass-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libplack-middleware-file-sass-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.