How to Install and Uninstall nginx Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: June 29,2024

1. Install "nginx" package

This is a short guide on how to install nginx on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install nginx

2. Uninstall "nginx" package

Please follow the step by step instructions below to uninstall nginx on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the nginx package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: nginx
Architecture: all
Version: 1.10.3-0ubuntu0.16.04.5
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Kartik Mistry
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 38
Depends: nginx-core (>= 1.10.3-0ubuntu0.16.04.5) | nginx-full (>= 1.10.3-0ubuntu0.16.04.5) | nginx-light (>= 1.10.3-0ubuntu0.16.04.5) | nginx-extras (>= 1.10.3-0ubuntu0.16.04.5), nginx-core (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-full (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-light (<< 1.10.3-0ubuntu0.16.04.5.1~) | nginx-extras (<< 1.10.3-0ubuntu0.16.04.5.1~)
Filename: pool/main/n/nginx/nginx_1.10.3-0ubuntu0.16.04.5_all.deb
Size: 3494
MD5sum: 78588d081edd1fad393f6686b42227df
SHA1: 94a234630ec5c54892966a87df89b9a6f69b35e3
SHA256: 7a56da8a29b76344042875f194f0e8fd82722b4103fe414c76bf8519d7bf8f3f
SHA512: 7ce493fc952bc33bdf5766e406d9bf0dcbf8efdc1138b76a5cfc9b246ed82d804f247ca719200d79ad7bd922d3cc1e24f01ba5523cfff55d84555f96c8d10e4f
Homepage: http://nginx.net
Description-en: small, powerful, scalable web/proxy server
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 is a dependency package to install either nginx-core (by default),
nginx-full, nginx-light, or nginx-extras.
Description-md5: 2d277b9313aa50e3bfd675e64b49532c
Supported: 5y

Package: nginx
Priority: optional
Section: web
Installed-Size: 36
Maintainer: Ubuntu Developers
Original-Maintainer: Kartik Mistry
Architecture: all
Version: 1.9.15-0ubuntu1
Depends: nginx-core (>= 1.9.15-0ubuntu1) | nginx-full (>= 1.9.15-0ubuntu1) | nginx-light (>= 1.9.15-0ubuntu1) | nginx-extras (>= 1.9.15-0ubuntu1), nginx-core (<< 1.9.15-0ubuntu1.1~) | nginx-full (<< 1.9.15-0ubuntu1.1~) | nginx-light (<< 1.9.15-0ubuntu1.1~) | nginx-extras (<< 1.9.15-0ubuntu1.1~)
Filename: pool/main/n/nginx/nginx_1.9.15-0ubuntu1_all.deb
Size: 3490
MD5sum: 38ab3abe6bb3c8b1ce3917596225b972
SHA1: 7ca9e1d118f0f19502fa82017aefae328d413daf
SHA256: d170567295cbe4d6741775ae3993f9fa37c070884f13e84a523130e779006a05
Description-en: small, powerful, scalable web/proxy server
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 is a dependency package to install either nginx-core (by default),
nginx-full, nginx-light, or nginx-extras.
Description-md5: 2d277b9313aa50e3bfd675e64b49532c
Homepage: http://nginx.net
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y