How To Install libnginx-mod-http-cache-purge on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libnginx-mod-http-cache-purge on Ubuntu 20.04.
What is libnginx-mod-http-cache-purge
libnginx-mod-http-cache-purge is:
Cache Purge module adds purging capabilities to Nginx. It allows purging content from caches used by all of Nginx proxy modules, like FastCGI, Proxy, SCGI and uWSGI.
Package: libnginx-mod-http-cache-purge Architecture: amd64 Version: 1.17.10-0ubuntu1 Priority: optional Section: universe/httpd Source: nginx Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Nginx Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 76 Depends: nginx-common (= 1.17.10-0ubuntu1), libc6 (>= 2.14) Filename: pool/universe/n/nginx/libnginx-mod-http-cache-purge_1.17.10-0ubuntu1_amd64.deb Size: 11948 MD5sum: e0655425a88d65782075d114a263c365 SHA1: c186fff44c98d56b3b1ff02957922018fe8400d9 SHA256: 0a3b17165845e4a6d56727d0fdd0436294a419781c11a161bbdcda2d5e8ee9df Homepage: http://nginx.net Description-en: Purge content from Nginx caches Cache Purge module adds purging capabilities to Nginx. It allows purging content from caches used by all of Nginx proxy modules, like FastCGI, Proxy, SCGI and uWSGI.
There are three methods to install libnginx-mod-http-cache-purge on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libnginx-mod-http-cache-purge Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libnginx-mod-http-cache-purge using apt-get by running the following command:
sudo apt-get -y install libnginx-mod-http-cache-purge
Install libnginx-mod-http-cache-purge Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libnginx-mod-http-cache-purge using apt by running the following command:
sudo apt -y install libnginx-mod-http-cache-purge
Install libnginx-mod-http-cache-purge 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install libnginx-mod-http-cache-purge using aptitude by running the following command:
sudo aptitude -y install libnginx-mod-http-cache-purge
How To Uninstall libnginx-mod-http-cache-purge on Ubuntu 20.04
To uninstall only the libnginx-mod-http-cache-purge package we can use the following command:
sudo apt-get remove libnginx-mod-http-cache-purge
Uninstall libnginx-mod-http-cache-purge And Its Dependencies
To uninstall libnginx-mod-http-cache-purge and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libnginx-mod-http-cache-purge
Remove libnginx-mod-http-cache-purge Configurations and Data
To remove libnginx-mod-http-cache-purge configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libnginx-mod-http-cache-purge
Remove libnginx-mod-http-cache-purge configuration, data, and all of its dependencies
We can use the following command to remove libnginx-mod-http-cache-purge configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnginx-mod-http-cache-purge
References
Summary
In this tutorial we learn how to install libnginx-mod-http-cache-purge package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.