How to Install and Uninstall nginx Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 21,2024

1. Install "nginx" package

Please follow the guidance below to install nginx on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install nginx

2. Uninstall "nginx" package

Please follow the instructions below to uninstall nginx on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the nginx package on Ubuntu 20.04 LTS (Focal Fossa)

Package: nginx
Architecture: all
Version: 1.18.0-0ubuntu1.4
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Nginx Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 45
Depends: nginx-core (<< 1.18.0-0ubuntu1.4.1~) | nginx-full (<< 1.18.0-0ubuntu1.4.1~) | nginx-light (<< 1.18.0-0ubuntu1.4.1~) | nginx-extras (<< 1.18.0-0ubuntu1.4.1~), nginx-core (>= 1.18.0-0ubuntu1.4) | nginx-full (>= 1.18.0-0ubuntu1.4) | nginx-light (>= 1.18.0-0ubuntu1.4) | nginx-extras (>= 1.18.0-0ubuntu1.4)
Filename: pool/main/n/nginx/nginx_1.18.0-0ubuntu1.4_all.deb
Size: 3620
MD5sum: db127549c4cf59d223a94a1b8b172a51
SHA1: aacbfea70e6ed060ba5394ddf6272af94df0ba9a
SHA256: 6ecba31eb27b43e04d1976ff95c627aed6191318824db2eaee1fd31221fe4309
SHA512: 9d2cc0c8f98a90e8c95d645cb10c2e61d21be54aa60a8ad38fbcca4d855d324b5a70c94f62cb2bb7a710a8f8dd90262a3706f1a30c28dd53b04d167dc1acc47c
Homepage: http://nginx.net
Description: small, powerful, scalable web/proxy server
Description-md5: 04f6acc7fe672a4d62f4345c9addf4a7

Package: nginx
Architecture: all
Version: 1.17.10-0ubuntu1
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Nginx Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 44
Depends: nginx-core (<< 1.17.10-0ubuntu1.1~) | nginx-full (<< 1.17.10-0ubuntu1.1~) | nginx-light (<< 1.17.10-0ubuntu1.1~) | nginx-extras (<< 1.17.10-0ubuntu1.1~), nginx-core (>= 1.17.10-0ubuntu1) | nginx-full (>= 1.17.10-0ubuntu1) | nginx-light (>= 1.17.10-0ubuntu1) | nginx-extras (>= 1.17.10-0ubuntu1)
Filename: pool/main/n/nginx/nginx_1.17.10-0ubuntu1_all.deb
Size: 3616
MD5sum: 13584f2a2b71fb6450b261ae4e971010
SHA1: 37d94fe7b5ef534739bcc268cc580c7c43550fa8
SHA256: 8b6844bc320001a6faf8feda518e7cc2fd58907ff56bf41f18947265c7ebf39c
Homepage: http://nginx.net
Description: small, powerful, scalable web/proxy server
Description-md5: 04f6acc7fe672a4d62f4345c9addf4a7