How To Install GeoIP on Fedora 34
Introduction
In this tutorial we learn how to install GeoIP
on Fedora 34.
What is GeoIP
GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses file based databases that can optionally be updated on a weekly basis by installing the geoipupdate-cron (IPv4) and/or geoipupdate-cron6 (IPv6) packages. GeoIP 1.6.12 9.fc34 x86_64 121 k GeoIP-1.6.12-9.fc34.src.rpm fedora Library for country/city/organization to IP address or hostname mapping http LGPLv2+ GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses file based databases that can optionally be updated on a weekly basis by installing the geoipupdate-cron (IPv4) and/or geoipupdate-cron6 (IPv6) packages.
We can use yum
or dnf
to install GeoIP
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP.
Install GeoIP on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install GeoIP
using dnf
by running the following command:
sudo dnf -y install GeoIP
Install GeoIP on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install GeoIP
using yum
by running the following command:
sudo yum -y install GeoIP
How To Uninstall GeoIP on Fedora 34
To uninstall only the GeoIP
package we can use the following command:
sudo dnf remove GeoIP
GeoIP Package Contents on Fedora 34
/usr/bin/geoiplookup
/usr/bin/geoiplookup6
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/9f6b8de3dd94c013b5de18b8f9f681c4d26d02
/usr/lib/.build-id/58
/usr/lib/.build-id/58/fa9b23c1f7260f3499615c3d9439161236b0e5
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/74258925584ff814a78c5cd4faa0a52a85a5e8
/usr/lib/libGeoIP.so.1
/usr/lib/libGeoIP.so.1.6.12
/usr/share/doc/GeoIP
/usr/share/doc/GeoIP/AUTHORS
/usr/share/doc/GeoIP/ChangeLog
/usr/share/doc/GeoIP/NEWS.md
/usr/share/doc/GeoIP/README.md
/usr/share/licenses/GeoIP
/usr/share/licenses/GeoIP/COPYING
/usr/share/man/man1/geoiplookup.1.gz
/usr/share/man/man1/geoiplookup6.1.gz
/usr/bin/geoiplookup
/usr/bin/geoiplookup6
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/d7bda8d0b476401fbc1dfe09da2d7e3e85e598
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/21df6b0269c19d9600cb653cea6d28f81ea7fb
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/11368e14f68ffcb8ea908868653c7b0d9d4acf
/usr/lib64/libGeoIP.so.1
/usr/lib64/libGeoIP.so.1.6.12
/usr/share/doc/GeoIP
/usr/share/doc/GeoIP/AUTHORS
/usr/share/doc/GeoIP/ChangeLog
/usr/share/doc/GeoIP/NEWS.md
/usr/share/doc/GeoIP/README.md
/usr/share/licenses/GeoIP
/usr/share/licenses/GeoIP/COPYING
/usr/share/man/man1/geoiplookup.1.gz
/usr/share/man/man1/geoiplookup6.1.gz
References
- [GeoIP website](http://www.maxmind.com/app/c http://www.maxmind.com/app/c)
Summary
In this tutorial we learn how to install GeoIP
on Fedora 34 using yum and dnf.