How To Install libyaml on Fedora 34
Introduction
In this tutorial we learn how to install libyaml
on Fedora 34.
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.2.5 5.fc34 i686 63 k libyaml-0.2.5-5.fc34.src.rpm fedora YAML 1.1 parser and emitter written in C https 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libyaml.
Install libyaml on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34
To uninstall only the libyaml
package we can use the following command:
sudo dnf remove libyaml
libyaml Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/79
/usr/lib/.build-id/79/84d5cc2fd4c0219a716c7c28a2eda7b299394c
/usr/lib/libyaml-0.so.2
/usr/lib/libyaml-0.so.2.0.9
/usr/share/doc/libyaml
/usr/share/doc/libyaml/ReadMe.md
/usr/share/licenses/libyaml
/usr/share/licenses/libyaml/License
/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/9c76b232cade2b1e58da55ae787612834f4a88
/usr/lib64/libyaml-0.so.2
/usr/lib64/libyaml-0.so.2.0.9
/usr/share/doc/libyaml
/usr/share/doc/libyaml/ReadMe.md
/usr/share/licenses/libyaml
/usr/share/licenses/libyaml/License
References
- [libyaml website](https://github.com/yaml/libyaml https://github.com/yaml/libyaml)
Summary
In this tutorial we learn how to install libyaml
on Fedora 34 using yum and dnf.