How To Install gpsd on CentOS 7

In this tutorial we learn how to install gpsd on CentOS 7. gpsd is Service daemon for mediating access to a GPS

Introduction

In this tutorial we learn how to install gpsd on CentOS 7.

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 wardriving 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install gpsd.

Install gpsd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install gpsd

Install gpsd on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install gpsd

How To Uninstall gpsd on CentOS 7

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 CentOS 7 using yum and dnf.