How To Install libsoup on CentOS 7

In this tutorial we learn how to install libsoup on CentOS 7. libsoup is Soup, an HTTP library implementation

Introduction

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

What is libsoup

Libsoup is an HTTP library implementation in C. It was originally part of a SOAP (Simple Object Access Protocol) implementation called Soup, but the SOAP and non-SOAP parts have now been split into separate packages. libsoup uses the Glib main loop and is designed to work well with GTK applications. This enables GNOME applications to access HTTP servers on the network in a completely asynchronous fashion, very similar to the Gtk+ programming model (a synchronous operation mode is also supported for those who want it). Libsoup is an HTTP library implementation in C. It was originally part of a SOAP (Simple Object Access Protocol) implementation called Soup, but the SOAP and non-SOAP parts have now been split into separate packages. libsoup uses the Glib main loop and is designed to work well with GTK applications. This enables GNOME applications to access HTTP servers on the network in a completely asynchronous fashion, very similar to the Gtk+ programming model (a synchronous operation mode is also supported for those who want it).

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

Install libsoup on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libsoup

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

sudo dnf -y install libsoup

How To Uninstall libsoup on CentOS 7

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

sudo dnf remove libsoup

References

Summary

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