Skip to content

Instantly share code, notes, and snippets.

@jrivero
Last active February 21, 2024 11:34
Show Gist options
  • Save jrivero/8472184 to your computer and use it in GitHub Desktop.
Save jrivero/8472184 to your computer and use it in GitHub Desktop.
#!/bin/sh
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gzip -d -f GeoIP.dat.gz
wget -N http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
gzip -d -f GeoIPv6.dat.gz
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gzip -d -f GeoLiteCity.dat.gz
mv GeoLiteCity.dat GeoIPCity.dat
mv Geo*.dat /usr/share/GeoIP/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment