How To Install php-pecl-ip2location on Fedora 36
Introduction
In this tutorial we learn how to install php-pecl-ip2location
on Fedora 36.
What is php-pecl-ip2location
This PHP extension enables you to get the geo location information of an IP address, such as country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, and usage type.
We can use yum
or dnf
to install php-pecl-ip2location
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-ip2location.
Install php-pecl-ip2location 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 php-pecl-ip2location
using dnf
by running the following command:
sudo dnf -y install php-pecl-ip2location
Install php-pecl-ip2location 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 php-pecl-ip2location
using yum
by running the following command:
sudo yum -y install php-pecl-ip2location
How To Uninstall php-pecl-ip2location on Fedora 36
To uninstall only the php-pecl-ip2location
package we can use the following command:
sudo dnf remove php-pecl-ip2location
php-pecl-ip2location Package Contents on Fedora 36
/etc/php-zts.d/40-ip2location.ini
/etc/php.d/40-ip2location.ini
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/56ba51e10c9933b06c740ef355177f61f65ebd
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/58ab601222f69daeae10baf87cd1f026be146b
/usr/lib64/php-zts/modules/ip2location.so
/usr/lib64/php/modules/ip2location.so
/usr/share/doc/pecl/ip2location
/usr/share/doc/pecl/ip2location/CREDITS
/usr/share/doc/pecl/ip2location/README.md
/var/lib/php/peclxml/php-pecl-ip2location.xml
References
Summary
In this tutorial we learn how to install php-pecl-ip2location
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).