maxmind / geoipupdate-legacy

GeoIP update client code
GNU General Public License v2.0
258 stars 63 forks source link

Initial downloading #52

Closed artpolikarpov closed 7 years ago

artpolikarpov commented 7 years ago

Is this package for update only? Or it can be used for initial downloadng too?

I got this:

artpolikarpov@geo-02:~$ sudo geoipupdate -v
geoipupdate 2.2.2
Opened License file /etc/GeoIP.conf
UserId 999999
LicenseKey 000000000000
Insert product_id GeoLite2-City
Read in license key /etc/GeoIP.conf
Number of product ids 1
url: https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-City
md5hex_digest: 60795d760ce4aac0ff36d76969f79f8e
url: https://updates.maxmind.com/app/update_getipaddr
Client IP address: 104.196.185.183
md5hex_digest2: ac1d3600e9de012252c01a0144ed8ca9
url: https://updates.maxmind.com/app/update_secure?db_md5=60795d760ce4aac0ff36d76969f79f8e&challenge_md5=ac1d3600e9de012252c01a0144ed8ca9&user_id=999999&edition_id=GeoLite2-City
No new updates available

It says “No new updates available”, but /usr/local/share/GeoIP (default one) is empty.

artpolikarpov commented 7 years ago

Ah, found it in /usr/share/GeoIP without local. Strange that GeoIP.conf says that default is /usr/local/share/GeoIP...

oschwald commented 7 years ago

Did you install this using --prefix or are you using a package for your distribution? The default path is only when installing by hand with no additional flags.