How to Install and Uninstall nginx Package on Debian 11 (Bullseye)

Last updated: September 29,2024

1. Install "nginx" package

Please follow the guidance below to install nginx on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install nginx

2. Uninstall "nginx" package

This tutorial shows how to uninstall nginx on Debian 11 (Bullseye):

$ sudo apt remove nginx $ sudo apt autoclean && sudo apt autoremove

3. Information about the nginx package on Debian 11 (Bullseye)

Package: nginx
Version: 1.18.0-6.1+deb11u2
Installed-Size: 102
Maintainer: Debian Nginx Maintainers
Architecture: all
Depends: nginx-core (<< 1.18.0-6.1+deb11u2.1~) | nginx-full (<< 1.18.0-6.1+deb11u2.1~) | nginx-light (<< 1.18.0-6.1+deb11u2.1~) | nginx-extras (<< 1.18.0-6.1+deb11u2.1~), nginx-core (>= 1.18.0-6.1+deb11u2) | nginx-full (>= 1.18.0-6.1+deb11u2) | nginx-light (>= 1.18.0-6.1+deb11u2) | nginx-extras (>= 1.18.0-6.1+deb11u2)
Description: small, powerful, scalable web/proxy server
Description-md5: 902443ddbee17249123a068e7ca7c6d8
Homepage: https://nginx.net
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.18.0-6.1+deb11u2_all.deb
Size: 92872
MD5sum: c5f7e683f0cb1d7060e0185ed91c1605
SHA256: 0552ff7027fb1348cb1ac0c69d97d4a9fc5fd08e74423c7a910d125d26afbe5b