How To Install GeoIP-data on CentOS 7
Introduction
In this tutorial we learn how to install GeoIP-data
on CentOS 7.
What is GeoIP-data
Snapshot of IPv4 and IPv6 databases for GeoIP. These databases are not regularly updated, use a cron job from GeoIP-update package to get fresh ones. This package includes GeoLite data created by MaxMind, available from http
We can use yum
or dnf
to install GeoIP-data
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP-data.
Install GeoIP-data on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install GeoIP-data
using yum
by running the following command:
Install GeoIP-data on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install GeoIP-data
using dnf
by running the following command:
How To Uninstall GeoIP-data on CentOS 7
To uninstall only the GeoIP-data
package we can use the following command:
References
Summary
In this tutorial we learn how to install GeoIP-data
on CentOS 7 using yum
and dnf
.