How To Install GeoIP on Fedora 36

In this tutorial we learn how to install GeoIP in Fedora 36. GeoIP is Library for country/city/organization to IP address or hostname mapping

Introduction

In this tutorial we learn how to install GeoIP on Fedora 36.

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.

We can use yum or dnf to install GeoIP on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP.

Install GeoIP on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install GeoIP using dnf by running the following command:

sudo dnf -y install GeoIP

Install GeoIP on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

To uninstall only the GeoIP package we can use the following command:

sudo dnf remove GeoIP

GeoIP Package Contents on Fedora 36

/usr/bin/geoiplookup
/usr/bin/geoiplookup6
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/c6a9fe31eedc5135855dffb04a02c65ec19a8a
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/02fdf44b7e3c75abf50bc19514baccf75ee955
/usr/lib/.build-id/47
/usr/lib/.build-id/47/4a0ae3cb8d8332d5e1524c563c842cc2201d34
/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

Summary

In this tutorial we learn how to install GeoIP on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install GeoIP on Fedora 36” linkTitle: “GeoIP” type: “docs” description: “In this tutorial we learn how to install GeoIP in Fedora 36. GeoIP is Library for country/city/organization to IP address or hostname mapping” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/GeoIP-featured.png

Introduction

In this tutorial we learn how to install GeoIP on Fedora 36.

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.

We can use yum or dnf to install GeoIP on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP.

Install GeoIP on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install GeoIP using dnf by running the following command:

sudo dnf -y install GeoIP

Install GeoIP on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

To uninstall only the GeoIP package we can use the following command:

sudo dnf remove GeoIP

GeoIP Package Contents on Fedora 36

/usr/bin/geoiplookup
/usr/bin/geoiplookup6
/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/5fda95bd2d6ce9ade10d95cd634f83c9ce8676
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/b2eda910c168e86339d15d2814232804573360
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/84404286b3399e281b9f6fd3799fad0ee99486
/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

References

Summary

In this tutorial we learn how to install GeoIP on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).