How To Install libyang on Rocky Linux 8

In this tutorial we learn how to install libyang on Rocky Linux 8. libyang is YANG data modeling language library

Introduction

In this tutorial we learn how to install libyang on Rocky Linux 8.

What is libyang

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libyang.

Install libyang on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libyang using dnf by running the following command:

sudo dnf -y install libyang

Install libyang on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove libyang

libyang Package Contents on Rocky Linux 8

/usr/bin/yanglint
/usr/bin/yangre
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/365b110ae7571d1c6ca65ab799dd5f52f98ad6
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/bb3f770087044a44f5cde7cd117bdc6fc402ac
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/6e596a32ee0add2c8990f17475daab16a2512a
/usr/lib/.build-id/53
/usr/lib/.build-id/53/0683a8e14c10e592075fefa447d973733cde5e
/usr/lib/.build-id/59
/usr/lib/.build-id/59/b8670c1e69388b88b276771f69b168d2d0aeff
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/8ca98d3fa2602be80d2f7c4a51c40728a7fb05
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/6871b6270fc75462ec415d401c6de080d20405
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/b0f6328c67e0294121ea8cde728408b36ff2bf
/usr/lib64/libyang.so.1
/usr/lib64/libyang.so.1.9.2
/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/77
/usr/lib/.build-id/77/4bbefa3d8cbaf976ebddefb9d2fd4866985608
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/13d945808c656a2f9bada36f56bfb036c94090
/usr/lib/.build-id/99
/usr/lib/.build-id/99/ed2cb8ec94d0823df5de88b2816823bcbe21e7
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/edef5347b9c23563afeee0996da78d357df2bd
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/3708388765dec839bd5e4fde0d713d5776f9fb
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/bfdc678865c733d95e15704fe928363f38a7a4
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/0bc71220f88906820569c0d7f254f64c9cc190
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/52150e92148ef89efead7a499dea8f331f299a
/usr/lib/libyang.so.1
/usr/lib/libyang.so.1.9.2
/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 Rocky Linux 8 using yum and dnf.