geoipupdate man page

geoipupdate ā€” GeoIP2 and GeoIP Legacy Update Program


geoipupdate [-Vvh] [-f license_file] [-d target_directory]


geoipupdate automatically updates GeoIP2 and GeoIP Legacy databases for MaxMind customers. The program connects to the MaxMind GeoIP Update server to check for new databases. If a new database is available, the program will download and install it.

If you are using a firewall, you must have the DNS and HTTP(S) ports open.



Display version information.


Enable verbose mode. Prints out the steps that geoipupdate takes.


Install databases to a custom directory. By default geoipupdate installs to /usr/share/GeoIP.


Use an alternate configuration file. Defaults to /etc/GeoIP.conf.


Typically you should run geoipupdate weekly. One way to achieve this is to use cron. Below is a sample crontab file that runs geoipupdate on each Wednesday at noon:

# top of crontab

0 12 * * 3 BIN_DIR/geoipupdate

# end of crontab

To use with a proxy server, update your GeoIP.conf file as specified in the GeoIP.conf man page or set the http_proxy environment variable.

Return Codes

geoipupdate returns 0 on success and 1 on error.



Configuration file for GeoIP Update. See the GeoIP.conf(5) man page for more information.


Written by T.J. Mather and Boris Zentner.

Reporting Bugs

Report bugs to <>.

More Information

Visit <> to learn more about the GeoIP2 and GeoIP Legacy databases or to sign up for a subscription.

See Also

GeoIP.conf(5), crontab(5)

Referenced By

GeoIP.conf(5), geoiplookup(1), geoiplookup6(1).

25 Sep 2013