How To Install nginx-light on Kali Linux
Introduction
In this tutorial we learn how to install nginx-light
on Kali Linux.
What is nginx-light
nginx-light is:
Nginx (“engine X”) is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a proxy to reduce the load on back-end HTTP or mail servers.
This package provides a very light version of nginx with only the minimal set of features and modules.
STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Empty GIF, FastCGI, Map, Proxy, Rewrite, SCGI, uWSGI.
OPTIONAL HTTP MODULES: Auth Request, Charset, Gzip, Gzip Precompression, Headers, HTTP/2, Index, Log, Real IP, Slice, SSI, SSL, Stub Status, Thread Pool, WebDAV, Upstream.
THIRD PARTY MODULES: Echo.
There are three methods to install nginx-light
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 nginx-light Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nginx-light
using apt-get
by running the following command:
sudo apt-get -y install nginx-light
Install nginx-light Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nginx-light
using apt
by running the following command:
sudo apt -y install nginx-light
Install nginx-light 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 nginx-light
using aptitude
by running the following command:
sudo aptitude -y install nginx-light
How To Uninstall nginx-light on Kali Linux
To uninstall only the nginx-light
package we can use the following command:
sudo apt-get remove nginx-light
Uninstall nginx-light And Its Dependencies
To uninstall nginx-light
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove nginx-light
Remove nginx-light Configurations and Data
To remove nginx-light
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge nginx-light
Remove nginx-light configuration, data, and all of its dependencies
We can use the following command to remove nginx-light
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nginx-light
Dependencies
nginx-light have the following dependencies:
References
Summary
In this tutorial we learn how to install nginx-light
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.