How To Install libyaml.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libyaml.x86_64 in Amazon Linux 2. libyaml.x86_64 is YAML 1.1 parser and emitter written in C

Introduction

In this tutorial we learn how to install libyaml.x86_64 on Amazon Linux 2.

What is libyaml.x86_64

YAML is a data serialization format designed for human readability and interaction with scripting languages. LibYAML is a YAML parser and emitter written in C.

We can use yum to install libyaml.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libyaml.x86_64.

Install libyaml.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libyaml.x86_64 using yum by running the following command:

sudo yum -y install libyaml.x86_64

How To Uninstall libyaml.x86_64 on Amazon Linux 2

To uninstall only the libyaml.x86_64 package we can use the following command:

sudo yum remove libyaml.x86_64

libyaml.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libyaml-0.so.2
/usr/lib64/libyaml-0.so.2.0.4
/usr/share/doc/libyaml-0.1.4
/usr/share/doc/libyaml-0.1.4/LICENSE
/usr/share/doc/libyaml-0.1.4/README

References

Summary

In this tutorial we learn how to install libyaml.x86_64 on Amazon Linux 2 using yum.