How to Install and Uninstall python3-pygeoip.noarch Package on Fedora 34

Last updated: September 20,2024

1. Install "python3-pygeoip.noarch" package

Please follow the steps below to install python3-pygeoip.noarch on Fedora 34

$ sudo dnf update $ sudo dnf install python3-pygeoip.noarch

2. Uninstall "python3-pygeoip.noarch" package

This is a short guide on how to uninstall python3-pygeoip.noarch on Fedora 34:

$ sudo dnf remove python3-pygeoip.noarch $ sudo dnf autoremove

3. Information about the python3-pygeoip.noarch package on Fedora 34

Last metadata expiration check: 4:01:16 ago on Tue Sep 6 08:10:37 2022.
Available Packages
Name : python3-pygeoip
Version : 0.2.6
Release : 26.fc34
Architecture : noarch
Size : 94 k
Source : python-pygeoip-0.2.6-26.fc34.src.rpm
Repository : fedora
Summary : Pure Python GeoIP API
URL : http://pypi.python.org/pypi/pygeoip
License : LGPLv3+
Description : Pure Python GeoIP API based on MaxMind's C-based Python API
: but the code itself is ported from the Pure PHP GeoIP API.
:
: Create your GeoIP instance with appropriate access flag. `STANDARD` reads
: data from disk when needed, `MEMORY_CACHE` loads database into memory on
: instantiation and `MMAP_CACHE` loads database into memory using mmap.
:
: import pygeoip
: gi = pygeoip.GeoIP('/usr/share/geoip/GeoIP.dat', pygeoip.MEMORY_CACHE)
:
: Country lookup
:
: >>> gi.country_code_by_name('google.com')
: 'US'
: >>> gi.country_code_by_addr('64.233.161.99')
: 'US'
: >>> gi.country_name_by_addr('64.233.161.99')
: 'United States'
:
: City lookup
:
: >>> gi = pygeoip.GeoIP('/usr/share/geoip/GeoLiteCity.dat')
: >>> gi.record_by_addr('64.233.161.99')
: {
: 'city': 'Mountain View',
: 'region_name': 'CA',
: 'area_code': 650,
: 'longitude': -122.0574,
: 'country_code3': 'USA',
: 'latitude': 37.419199999999989,
: 'postal_code': '94043',
: 'dma_code': 807,
: 'country_code': 'US',
: 'country_name': 'United States'
: }
: >>> gi.time_zone_by_addr('64.233.161.99')
: 'America/Los_Angeles'
:
: For more information, check out the full API documentation at
: http://packages.python.org/pygeoip.