How To Install ghc-dbus on CentOS 7

In this tutorial we learn how to install ghc-dbus on CentOS 7. ghc-dbus is Haskell client library for the D-Bus IPC system

Introduction

In this tutorial we learn how to install ghc-dbus on CentOS 7.

What is ghc-dbus

D-Bus is a simple, message-based protocol for inter-process communication, which allows applications to interact with other parts of the machine and the user’s session using remote procedure calls. This library is an implementation of the D-Bus protocol in Haskell. It can be used to add D-Bus support to Haskell applications, without the awkward interfaces common to foreign bindings.

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

Install ghc-dbus on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ghc-dbus

Install ghc-dbus 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 ghc-dbus using dnf by running the following command:

sudo dnf -y install ghc-dbus

How To Uninstall ghc-dbus on CentOS 7

To uninstall only the ghc-dbus package we can use the following command:

sudo dnf remove ghc-dbus

References

Summary

In this tutorial we learn how to install ghc-dbus on CentOS 7 using yum and dnf.