How To Install geoclue2.x86_64 on Amazon Linux 2

In this tutorial we learn how to install geoclue2.x86_64 in Amazon Linux 2. geoclue2.x86_64 is Geolocation service

Introduction

In this tutorial we learn how to install geoclue2.x86_64 on Amazon Linux 2.

What is geoclue2.x86_64

Geoclue is a D-Bus service that provides location information. The primary goal of the Geoclue project is to make creating location-aware applications as simple as possible, while the secondary goal is to ensure that no application can access location information without explicit permission from user.

We can use yum to install geoclue2.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install geoclue2.x86_64.

Install geoclue2.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install geoclue2.x86_64 using yum by running the following command:

sudo yum -y install geoclue2.x86_64

How To Uninstall geoclue2.x86_64 on Amazon Linux 2

To uninstall only the geoclue2.x86_64 package we can use the following command:

sudo yum remove geoclue2.x86_64

geoclue2.x86_64 Package Contents on Amazon Linux 2

/etc/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
/etc/dbus-1/system.d/org.freedesktop.GeoClue2.conf
/etc/geoclue
/etc/geoclue/geoclue.conf
/usr/lib/systemd/system/geoclue.service
/usr/libexec/geoclue
/usr/share/dbus-1/system-services/org.freedesktop.GeoClue2.service
/usr/share/doc/geoclue2-2.4.5
/usr/share/doc/geoclue2-2.4.5/NEWS
/usr/share/licenses/geoclue2-2.4.5
/usr/share/licenses/geoclue2-2.4.5/COPYING
/var/lib/geoclue

References

Summary

In this tutorial we learn how to install geoclue2.x86_64 on Amazon Linux 2 using yum.