How To Install perl-Coro on CentOS 7

In this tutorial we learn how to install perl-Coro on CentOS 7. perl-Coro is The only real threads in perl

Introduction

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

What is perl-Coro

This module collection manages continuations in general, most often in the form of cooperative threads (also called coros, or simply “coro” in the documentation). They are similar to kernel threads but don’t (in general) run in parallel at the same time even on SMP machines. The specific flavor of thread offered by this module also guarantees you that it will not switch between threads unless necessary, at easily-identified points in your program, so locking and parallel access are rarely an issue, making thread programming much safer and easier than using other thread models.

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

Install perl-Coro on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-Coro

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

sudo dnf -y install perl-Coro

How To Uninstall perl-Coro on CentOS 7

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

sudo dnf remove perl-Coro

References

Summary

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