View this package for all Ubuntu releases →
How to install nginx-module-geoip2 in Ubuntu 26.04 (resolute)
NGINX GeoIP2 module
Install
curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb sudo apt-get install -y /tmp/getpagespeed-release.deb rm /tmp/getpagespeed-release.deb sudo apt-get update sudo apt-get install -y nginx-module-geoip2
Free to install; commercial production use requires a subscription. Without one, a small license notice appears on HTML pages after 30 days. For other releases and channels, use the setup wizard.
Description
NGINX module which creates variables with values from the MaxMind geoip2 databases. based on the client IP (default) or from a specific variable (supports both IPv4 and IPv6)
Packages
| Package | Size | Built |
|---|---|---|
| nginx-module-geoip2_1.30.8+3.4-9~gps1+ubuntu2604+stable_amd64 | 11 KiB | 2026-11-24 |
| nginx-module-geoip2_1.30.8+3.4-9~gps1+ubuntu2604+stable_arm64 | 11 KiB | 2026-11-24 |
| nginx-module-geoip2_1.30.7+3.4-9~gps1+ubuntu2604+stable_amd64 | 11 KiB | 2026-11-18 |
| nginx-module-geoip2_1.30.7+3.4-9~gps1+ubuntu2604+stable_arm64 | 11 KiB | 2026-11-18 |