How To Install libyang on Fedora 34

libyang is YANG data modeling language library YANG data modeling language library

Introduction

In this tutorial we learn how to install libyang on Fedora 34.

What is libyang

Libyang is YANG data modeling language parser and toolkit written (and providing API) in C. libyang 1.0.225 1.fc34 x86_64 557 k libyang-1.0.225-1.fc34.src.rpm fedora YANG data modeling language library https BSD Libyang is YANG data modeling language parser and toolkit written (and providing API) in C.

We can use yum or dnf to install libyang on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libyang.

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

sudo dnf -y install libyang

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

sudo yum -y install libyang

How To Uninstall libyang on Fedora 34

To uninstall only the libyang package we can use the following command:

sudo dnf remove libyang

libyang Package Contents on Fedora 34

/usr/bin/yanglint
/usr/bin/yangre
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/8aa3b12a6e5e4653dd9018c6bbba7812de5ba4
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/dcb372ecb86797d5ad242047e8843e133a8f92
/usr/lib/.build-id/92
/usr/lib/.build-id/92/154b6e8f0783437d9435b6c1eefb1d4921f556
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/75f33bc0d5e4fa73fde7b9d8a912886072d426
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/52e41f1e9bf07347762bb91d81ee60c96d01c9
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/5e262e1d7920fac530c66ec98b9a937acf8be1
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/c03e80d30d66c5e8a8038d2ccaa62d0e26f88d
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/9170620cbe013223ae9c056225d5d5de05642a
/usr/lib64/libyang.so.1
/usr/lib64/libyang.so.1.10.17
/usr/lib64/libyang1
/usr/lib64/libyang1/extensions
/usr/lib64/libyang1/extensions/metadata.so
/usr/lib64/libyang1/extensions/nacm.so
/usr/lib64/libyang1/extensions/yangdata.so
/usr/lib64/libyang1/user_types
/usr/lib64/libyang1/user_types/user_inet_types.so
/usr/lib64/libyang1/user_types/user_yang_types.so
/usr/share/licenses/libyang
/usr/share/licenses/libyang/LICENSE
/usr/share/man/man1/yanglint.1.gz
/usr/share/man/man1/yangre.1.gz
/usr/bin/yanglint
/usr/bin/yangre
/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/70eb1c1ea309a65aecb60368c2750606909ef2
/usr/lib/.build-id/23
/usr/lib/.build-id/23/b0a9485328b00016fd18b39f2c8105f78a96da
/usr/lib/.build-id/30
/usr/lib/.build-id/30/502ca4d20657c4937676bda6e66f54ea8d4979
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/495a1788631491c90bd15dc9f5506cf27860a5
/usr/lib/.build-id/91
/usr/lib/.build-id/91/635de70dbd78acaf5c7bd15733b1a7ad5dcc0b
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/d674a9acbb1dc605d5d97a0259ecf82d19d041
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/90ee54b8650523cc2fbfd73a41367ffb520a52
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/0660e52399e541c417c62f750b9c3580f79aac
/usr/lib/libyang.so.1
/usr/lib/libyang.so.1.10.17
/usr/lib/libyang1
/usr/lib/libyang1/extensions
/usr/lib/libyang1/extensions/metadata.so
/usr/lib/libyang1/extensions/nacm.so
/usr/lib/libyang1/extensions/yangdata.so
/usr/lib/libyang1/user_types
/usr/lib/libyang1/user_types/user_inet_types.so
/usr/lib/libyang1/user_types/user_yang_types.so
/usr/share/licenses/libyang
/usr/share/licenses/libyang/LICENSE
/usr/share/man/man1/yanglint.1.gz
/usr/share/man/man1/yangre.1.gz

References

Summary

In this tutorial we learn how to install libyang on Fedora 34 using yum and dnf.