GeoIPCity.dat file where do I find it?

Ron picture Ron · Jun 16, 2015 · Viewed 25.1k times · Source

I have a file GeoIPCity.day on one of my sites. The original developer told me it was a free file from maxmind.com and I should update it every month. I have looked on maxmind.com and haven't been able to find a file with the exact same name. Any idea what file I should used as the update? Here are the list of files I was able to find on the website: http://dev.maxmind.com/geoip/legacy/geolite/#Downloads

Answer

Dany Davila picture Dany Davila · Dec 21, 2015

Free version of the GEO IP City was rename from GeoIPCity.dat TO GeoLiteCity.dat.

Download the data. This should work on CentOS 7/7.1

wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -O /usr/share/GeoIP/GeoLiteCity.dat.gz && gunzip --force /usr/share/GeoIP/GeoLiteCity.dat.gz

this maintenance a backward compatible version

ln -s /usr/share/GeoIP/GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat