How To Install IP2Location on Fedora 34

IP2Location is Tools for mapping IP address to geolocation information Tools for mapping IP address to geolocation information

Introduction

In this tutorial we learn how to install IP2Location on Fedora 34.

What is IP2Location

ip2location command enables the user to get the country, region, city, coordinates, ZIP code, time zone, ISP, domain name, connection type, area code, weather info, mobile carrier, elevation and usage type from any IP address or hostname. This library has been optimized for speed and memory utilization. The library contains API to query all IP2Location LITE and commercial binary databases. Users can download the latest LITE database from IP2Location web site using e.g. the included downloader. IP2Location 8.4.0 2.fc34 x86_64 31 k IP2Location-8.4.0-2.fc34.src.rpm updates Tools for mapping IP address to geolocation information http MIT ip2location command enables the user to get the country, region, city, coordinates, ZIP code, time zone, ISP, domain name, connection type, area code, weather info, mobile carrier, elevation and usage type from any IP address or hostname. This library has been optimized for speed and memory utilization. The library contains API to query all IP2Location LITE and commercial binary databases. Users can download the latest LITE database from IP2Location web site using e.g. the included downloader.

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

Install IP2Location 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 IP2Location using dnf by running the following command:

sudo dnf -y install IP2Location

Install IP2Location 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 IP2Location using yum by running the following command:

sudo yum -y install IP2Location

How To Uninstall IP2Location on Fedora 34

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

sudo dnf remove IP2Location

IP2Location Package Contents on Fedora 34

/usr/bin/ip2location
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/4ebb98edbcab601bcbdfe2deb559e1276f7c65
/usr/share/IP2Location/tools
/usr/share/IP2Location/tools/download.pl
/usr/share/doc/IP2Location
/usr/share/doc/IP2Location/AUTHORS
/usr/share/doc/IP2Location/ChangeLog
/usr/share/doc/IP2Location/NEWS
/usr/share/doc/IP2Location/README.md
/usr/share/man/man1/ip2location.1.gz
/usr/bin/ip2location
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/9e4a5ed124bea76d9b4eb8944592cf4420119a
/usr/share/IP2Location/tools
/usr/share/IP2Location/tools/download.pl
/usr/share/doc/IP2Location
/usr/share/doc/IP2Location/AUTHORS
/usr/share/doc/IP2Location/ChangeLog
/usr/share/doc/IP2Location/NEWS
/usr/share/doc/IP2Location/README.md
/usr/share/man/man1/ip2location.1.gz
/usr/bin/ip2location
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/f0d9d364a08a7290ffc1824ea9ab3d4f304804
/usr/share/IP2Location/tools
/usr/share/IP2Location/tools/download.pl
/usr/share/doc/IP2Location
/usr/share/doc/IP2Location/AUTHORS
/usr/share/doc/IP2Location/ChangeLog
/usr/share/doc/IP2Location/NEWS
/usr/share/doc/IP2Location/README.md
/usr/share/man/man1/ip2location.1.gz
/usr/bin/ip2location
/usr/lib/.build-id
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/710cf2b4f702d2283b716da438ba4f804db6e9
/usr/share/IP2Location/tools
/usr/share/IP2Location/tools/download.pl
/usr/share/doc/IP2Location
/usr/share/doc/IP2Location/AUTHORS
/usr/share/doc/IP2Location/ChangeLog
/usr/share/doc/IP2Location/NEWS
/usr/share/doc/IP2Location/README.md
/usr/share/man/man1/ip2location.1.gz

References

Summary

In this tutorial we learn how to install IP2Location on Fedora 34 using yum and dnf.