How To Install gpsd on AlmaLinux 8

In this tutorial we learn how to install gpsd in AlmaLinux 8. gpsd is Service daemon for mediating access to a GPS

Introduction

In this tutorial we learn how to install gpsd on AlmaLinux 8.

What is gpsd

gpsd is a service daemon that mediates access to a GPS sensor connected to the host computer by serial or USB interface, making its data on the location/course/velocity of the sensor available to be queried on TCP port 2947 of the host computer. With gpsd, multiple GPS client applications (such as navigational and war-driving software) can share access to a GPS without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than NMEA 0183.

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

Install gpsd on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install gpsd

Install gpsd on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gpsd using yum by running the following command:

sudo yum -y install gpsd

How To Uninstall gpsd on AlmaLinux 8

To uninstall only the gpsd package we can use the following command:

sudo dnf remove gpsd

References

Summary

In this tutorial we learn how to install gpsd on AlmaLinux 8 using yum and dnf.