How to Install and Uninstall nginx Package on Debian 12 (Bookworm)
Last updated: March 15,2025
Notice
You can also install and uninstall the nginx on the following distributions in the same way, as they are all based on the Debian system
- MX Linux 23
- SparkyLinux
1. Install "nginx" package
Please follow the instructions below to install nginx on Debian 12 (Bookworm)
$
sudo apt update
Copied
$
sudo apt install
nginx
Copied
2. Uninstall "nginx" package
Please follow the instructions below to uninstall nginx on Debian 12 (Bookworm):
$
sudo apt remove
nginx
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the nginx package on Debian 12 (Bookworm)
Package: nginx
Version: 1.22.1-9
Installed-Size: 1330
Maintainer: Debian Nginx Maintainers
Architecture: amd64
Replaces: nginx-core (<< 1.22.1-6~), nginx-extras (<< 1.22.1-6~), nginx-light (<< 1.22.1-6~)
Provides: httpd, httpd-cgi, nginx-abi-1.22.1-7
Depends: libc6 (>= 2.34), libcrypt1 (>= 1:4.1.0), libpcre2-8-0 (>= 10.22), libssl3 (>= 3.0.0), zlib1g (>= 1:1.1.4), iproute2, nginx-common (<< 1.22.1-9.1~), nginx-common (>= 1.22.1-9)
Breaks: nginx-core (<< 1.22.1-6~), nginx-extras (<< 1.22.1-6~), nginx-light (<< 1.22.1-6~)
Description: small, powerful, scalable web/proxy server
Description-md5: cb534cf82475d3e706f730549c99229f
Homepage: https://nginx.org
Tag: implemented-in::c, interface::daemon, network::server, network::service,
protocol::http, role::program, use::proxying
Section: httpd
Priority: optional
Filename: pool/main/n/nginx/nginx_1.22.1-9_amd64.deb
Size: 527396
MD5sum: baf39c02fcf585879ae70f86681eb71e
SHA256: 2916d7fc95b33a9df9ffb984e4c05d7a6f4fe3abb950b9127f0ad9a4adbd88aa
Version: 1.22.1-9
Installed-Size: 1330
Maintainer: Debian Nginx Maintainers
Architecture: amd64
Replaces: nginx-core (<< 1.22.1-6~), nginx-extras (<< 1.22.1-6~), nginx-light (<< 1.22.1-6~)
Provides: httpd, httpd-cgi, nginx-abi-1.22.1-7
Depends: libc6 (>= 2.34), libcrypt1 (>= 1:4.1.0), libpcre2-8-0 (>= 10.22), libssl3 (>= 3.0.0), zlib1g (>= 1:1.1.4), iproute2, nginx-common (<< 1.22.1-9.1~), nginx-common (>= 1.22.1-9)
Breaks: nginx-core (<< 1.22.1-6~), nginx-extras (<< 1.22.1-6~), nginx-light (<< 1.22.1-6~)
Description: small, powerful, scalable web/proxy server
Description-md5: cb534cf82475d3e706f730549c99229f
Homepage: https://nginx.org
Tag: implemented-in::c, interface::daemon, network::server, network::service,
protocol::http, role::program, use::proxying
Section: httpd
Priority: optional
Filename: pool/main/n/nginx/nginx_1.22.1-9_amd64.deb
Size: 527396
MD5sum: baf39c02fcf585879ae70f86681eb71e
SHA256: 2916d7fc95b33a9df9ffb984e4c05d7a6f4fe3abb950b9127f0ad9a4adbd88aa