How To Install python3-GeoIP on Fedora 36
Introduction
In this tutorial we learn how to install python3-GeoIP
on Fedora 36.
What is python3-GeoIP
This package contains the Python bindings for the GeoIP API, allowing IP to location lookups to country, city and organization level within Python code.
We can use yum
or dnf
to install python3-GeoIP
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-GeoIP.
Install python3-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 python3-GeoIP
using dnf
by running the following command:
sudo dnf -y install python3-GeoIP
Install python3-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 python3-GeoIP
using yum
by running the following command:
sudo yum -y install python3-GeoIP
How To Uninstall python3-GeoIP on Fedora 36
To uninstall only the python3-GeoIP
package we can use the following command:
sudo dnf remove python3-GeoIP
python3-GeoIP Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/cdee8f4d1fd52d64e8bf8a57f2118a5e06facc
/usr/lib64/python3.10/site-packages/GeoIP-1.3.2-py3.10.egg-info
/usr/lib64/python3.10/site-packages/GeoIP-1.3.2-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/GeoIP-1.3.2-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/GeoIP-1.3.2-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/GeoIP-1.3.2-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/GeoIP.cpython-310-x86_64-linux-gnu.so
/usr/share/doc/python3-GeoIP
/usr/share/doc/python3-GeoIP/README.rst
/usr/share/doc/python3-GeoIP/examples
/usr/share/doc/python3-GeoIP/examples/city.py
/usr/share/doc/python3-GeoIP/examples/city_charset.py
/usr/share/doc/python3-GeoIP/examples/country.py
/usr/share/doc/python3-GeoIP/examples/domain.py
/usr/share/doc/python3-GeoIP/examples/netspeed.py
/usr/share/doc/python3-GeoIP/examples/netspeedcell.py
/usr/share/doc/python3-GeoIP/examples/org.py
/usr/share/doc/python3-GeoIP/examples/region.py
/usr/share/doc/python3-GeoIP/examples/t.py
/usr/share/doc/python3-GeoIP/examples/v6.py
/usr/share/licenses/python3-GeoIP
/usr/share/licenses/python3-GeoIP/LICENSE
References
Summary
In this tutorial we learn how to install python3-GeoIP
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).