How To Install geocode-glib on CentOS 8

geocode-glib is Geocoding helper library Geocoding helper library

Introduction

In this tutorial we learn how to install geocode-glib on CentOS 8.

What is geocode-glib

geocode-glib is a convenience library for the geocoding (finding longitude, and latitude from an address) and reverse geocoding (finding an address from coordinates). It uses Nominatim service to achieve that. It also caches (reverse-)geocoding requests for faster results and to avoid unnecessary server load. geocode-glib 3.26.0 3.el8 x86_64 72 k geocode-glib-3.26.0-3.el8.src.rpm appstream Geocoding helper library http LGPLv2+ geocode-glib is a convenience library for the geocoding (finding longitude, and latitude from an address) and reverse geocoding (finding an address from coordinates). It uses Nominatim service to achieve that. It also caches (reverse-)geocoding requests for faster results and to avoid unnecessary server load.

We can use yum or dnf to install geocode-glib on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install geocode-glib.

Install geocode-glib on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install geocode-glib

Install geocode-glib on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install geocode-glib using yum by running the following command:

sudo yum -y install geocode-glib

How To Uninstall geocode-glib on CentOS 8

To uninstall only the geocode-glib package we can use the following command:

sudo dnf remove geocode-glib

geocode-glib Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/3d64ec4ed9743a1785c3cf87c60cfeb620951b
/usr/lib/girepository-1.0/GeocodeGlib-1.0.typelib
/usr/lib/libgeocode-glib.so.0
/usr/lib/libgeocode-glib.so.0.0.0
/usr/share/doc/geocode-glib
/usr/share/doc/geocode-glib/AUTHORS
/usr/share/doc/geocode-glib/NEWS
/usr/share/doc/geocode-glib/README
/usr/share/icons/gnome/scalable/places/poi-airport.svg
/usr/share/icons/gnome/scalable/places/poi-bar.svg
/usr/share/icons/gnome/scalable/places/poi-building.svg
/usr/share/icons/gnome/scalable/places/poi-bus-stop.svg
/usr/share/icons/gnome/scalable/places/poi-car.svg
/usr/share/icons/gnome/scalable/places/poi-light-rail-station.svg
/usr/share/icons/gnome/scalable/places/poi-marker.svg
/usr/share/icons/gnome/scalable/places/poi-place-of-worship.svg
/usr/share/icons/gnome/scalable/places/poi-railway-station.svg
/usr/share/icons/gnome/scalable/places/poi-restaurant.svg
/usr/share/icons/gnome/scalable/places/poi-school.svg
/usr/share/icons/gnome/scalable/places/poi-town.svg
/usr/share/licenses/geocode-glib
/usr/share/licenses/geocode-glib/COPYING.LIB
/usr/lib/.build-id
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/8cb71aee05d0af361314cf7a68c34104944da6
/usr/lib64/girepository-1.0/GeocodeGlib-1.0.typelib
/usr/lib64/libgeocode-glib.so.0
/usr/lib64/libgeocode-glib.so.0.0.0
/usr/share/doc/geocode-glib
/usr/share/doc/geocode-glib/AUTHORS
/usr/share/doc/geocode-glib/NEWS
/usr/share/doc/geocode-glib/README
/usr/share/icons/gnome/scalable/places/poi-airport.svg
/usr/share/icons/gnome/scalable/places/poi-bar.svg
/usr/share/icons/gnome/scalable/places/poi-building.svg
/usr/share/icons/gnome/scalable/places/poi-bus-stop.svg
/usr/share/icons/gnome/scalable/places/poi-car.svg
/usr/share/icons/gnome/scalable/places/poi-light-rail-station.svg
/usr/share/icons/gnome/scalable/places/poi-marker.svg
/usr/share/icons/gnome/scalable/places/poi-place-of-worship.svg
/usr/share/icons/gnome/scalable/places/poi-railway-station.svg
/usr/share/icons/gnome/scalable/places/poi-restaurant.svg
/usr/share/icons/gnome/scalable/places/poi-school.svg
/usr/share/icons/gnome/scalable/places/poi-town.svg
/usr/share/licenses/geocode-glib
/usr/share/licenses/geocode-glib/COPYING.LIB

References

Summary

In this tutorial we learn how to install geocode-glib on CentOS 8 using yum and dnf.