How To Install libecap on CentOS 7

In this tutorial we learn how to install libecap on CentOS 7. libecap is Squid interface for embedded adaptation modules

Introduction

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

What is libecap

eCAP is a software interface that allows a network application, such as an HTTP proxy or an ICAP server, to outsource content analysis and adaptation to a loadable module. For each applicable protocol message being processed, an eCAP-enabled host application supplies the message details to the adaptation module and gets back an adapted message, a “not interested” response, or a “block this message now!” instruction. These exchanges often include message bodies. The adaptation module can also exchange meta-information with the host application to supply additional details such as configuration options, a reason behind the decision to ignore a message, or a detected virus name. If you are familiar with the ICAP protocol (RFC 3507), then you may think of eCAP as an “embedded ICAP”, where network interactions with an ICAP server are replaced with function calls to an adaptation module. eCAP is a software interface that allows a network application, such as an HTTP proxy or an ICAP server, to outsource content analysis and adaptation to a loadable module. For each applicable protocol message being processed, an eCAP-enabled host application supplies the message details to the adaptation module and gets back an adapted message, a “not interested” response, or a “block this message now!” instruction. These exchanges often include message bodies. The adaptation module can also exchange meta-information with the host application to supply additional details such as configuration options, a reason behind the decision to ignore a message, or a detected virus name. If you are familiar with the ICAP protocol (RFC 3507), then you may think of eCAP as an “embedded ICAP”, where network interactions with an ICAP server are replaced with function calls to an adaptation module.

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

Install libecap on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libecap

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

sudo dnf -y install libecap

How To Uninstall libecap on CentOS 7

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

sudo dnf remove libecap

References

Summary

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