How To Install perl-YAML-LibYAML on CentOS 7

In this tutorial we learn how to install perl-YAML-LibYAML on CentOS 7. perl-YAML-LibYAML is Perl YAML Serialization using XS and libyaml

Introduction

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

What is perl-YAML-LibYAML

Kirill Siminov’s “libyaml” is arguably the best YAML implementation. The C library is written precisely to the YAML 1.1 specification. It was originally bound to Python and was later bound to Ruby.

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

Install perl-YAML-LibYAML 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-YAML-LibYAML using yum by running the following command:

sudo yum -y install perl-YAML-LibYAML

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

sudo dnf -y install perl-YAML-LibYAML

How To Uninstall perl-YAML-LibYAML on CentOS 7

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

sudo dnf remove perl-YAML-LibYAML

References

Summary

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