How To Install opensips-perl on CentOS 7

In this tutorial we learn how to install opensips-perl on CentOS 7. opensips-perl is Helps implement your own OpenSIPS extensions in Perl

Introduction

In this tutorial we learn how to install opensips-perl on CentOS 7.

What is opensips-perl

The time needed when writing a new OpenSIPS module unfortunately is quite high, while the options provided by the configuration file are limited to the features implemented in the modules. With this Perl module, you can easily implement your own OpenSIPS extensions in Perl. This allows for simple access to the full world of CPAN modules. SIP URI rewriting could be implemented based on regular expressions; accessing arbitrary data backends, e.g. LDAP or Berkeley DB files, is now extremely simple.

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

Install opensips-perl on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install opensips-perl

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

sudo dnf -y install opensips-perl

How To Uninstall opensips-perl on CentOS 7

To uninstall only the opensips-perl package we can use the following command:

sudo dnf remove opensips-perl

References

Summary

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