How To Install libyaml on CentOS 8
Introduction
In this tutorial we learn how to install libyaml
on CentOS 8.
What is libyaml
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. libyaml 0.1.7 5.el8 i686 64 k libyaml-0.1.7-5.el8.src.rpm baseos YAML 1.1 parser and emitter written in C http MIT 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
or dnf
to install libyaml
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libyaml.
Install libyaml on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install libyaml
using dnf
by running the following command:
sudo dnf -y install libyaml
Install libyaml on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install libyaml
using yum
by running the following command:
sudo yum -y install libyaml
How To Uninstall libyaml on CentOS 8
To uninstall only the libyaml
package we can use the following command:
sudo dnf remove libyaml
libyaml Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/086a9628216954b47992cf8a0141847303ce29
/usr/lib64/libyaml-0.so.2
/usr/lib64/libyaml-0.so.2.0.5
/usr/share/doc/libyaml
/usr/share/doc/libyaml/README
/usr/share/licenses/libyaml
/usr/share/licenses/libyaml/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/4c9dcc4ba634eed8f4ca2274ff044948714ca7
/usr/lib/libyaml-0.so.2
/usr/lib/libyaml-0.so.2.0.5
/usr/share/doc/libyaml
/usr/share/doc/libyaml/README
/usr/share/licenses/libyaml
/usr/share/licenses/libyaml/LICENSE
References
- [libyaml website](http://pyyaml.org/ http://pyyaml.org/)
Summary
In this tutorial we learn how to install libyaml
on CentOS 8 using yum and dnf.