How To Install nginx-dev on Debian 12
Introduction
In this tutorial we learn how to install nginx-dev
on Debian 12.
What is nginx-dev
nginx-dev 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 development headers and necessary config scripts for the nginx web/proxy server, useful to develop and link third party additions to the Debian nginx web/proxy server packages.
There are three methods to install nginx-dev
on Debian 12. 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-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 nginx-dev
using apt-get
by running the following command:
sudo apt-get -y install nginx-dev
Install nginx-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nginx-dev
using apt
by running the following command:
sudo apt -y install nginx-dev
Install nginx-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nginx-dev
using aptitude
by running the following command:
sudo aptitude -y install nginx-dev
How To Uninstall nginx-dev on Debian 12
To uninstall only the nginx-dev
package we can use the following command:
sudo apt-get remove nginx-dev
Uninstall nginx-dev And Its Dependencies
To uninstall nginx-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove nginx-dev
Remove nginx-dev Configurations and Data
To remove nginx-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge nginx-dev
Remove nginx-dev configuration, data, and all of its dependencies
We can use the following command to remove nginx-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nginx-dev
Dependencies
nginx-dev have the following dependencies:
- debhelper-compat
- libexpat-dev
- libgd-dev
- libgeoip-dev
- libpcre2-dev
- libperl-dev
- libssl-dev
- libxslt1-dev
- po-debconf
- zlib1g-dev
- nginx
- nginx
References
Summary
In this tutorial we learn how to install nginx-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.