How To Install libsmi-devel on Rocky Linux 8

In this tutorial we learn how to install libsmi-devel on Rocky Linux 8. libsmi-devel is Development environment for libsmi library

Introduction

In this tutorial we learn how to install libsmi-devel on Rocky Linux 8.

What is libsmi-devel

Libsmi is a C library to access MIB module information through a well defined API that hides the nasty details of locating and parsing SMIv1/v2 MIB modules. This package contains development files needed to develop libsmi-based applications.

We can use yum or dnf to install libsmi-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libsmi-devel.

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

sudo dnf -y install libsmi-devel

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

sudo yum -y install libsmi-devel

How To Uninstall libsmi-devel on Rocky Linux 8

To uninstall only the libsmi-devel package we can use the following command:

sudo dnf remove libsmi-devel

libsmi-devel Package Contents on Rocky Linux 8

/usr/include/smi.h
/usr/lib/libsmi.so
/usr/lib/pkgconfig/libsmi.pc
/usr/share/aclocal/libsmi.m4
/usr/share/man/man3/libsmi.3.gz
/usr/share/man/man3/smi_attribute.3.gz
/usr/share/man/man3/smi_class.3.gz
/usr/share/man/man3/smi_config.3.gz
/usr/share/man/man3/smi_event.3.gz
/usr/share/man/man3/smi_identity.3.gz
/usr/share/man/man3/smi_macro.3.gz
/usr/share/man/man3/smi_module.3.gz
/usr/share/man/man3/smi_node.3.gz
/usr/share/man/man3/smi_render.3.gz
/usr/share/man/man3/smi_type.3.gz
/usr/share/man/man3/smi_util.3.gz
/usr/include/smi.h
/usr/lib64/libsmi.so
/usr/lib64/pkgconfig/libsmi.pc
/usr/share/aclocal/libsmi.m4
/usr/share/man/man3/libsmi.3.gz
/usr/share/man/man3/smi_attribute.3.gz
/usr/share/man/man3/smi_class.3.gz
/usr/share/man/man3/smi_config.3.gz
/usr/share/man/man3/smi_event.3.gz
/usr/share/man/man3/smi_identity.3.gz
/usr/share/man/man3/smi_macro.3.gz
/usr/share/man/man3/smi_module.3.gz
/usr/share/man/man3/smi_node.3.gz
/usr/share/man/man3/smi_render.3.gz
/usr/share/man/man3/smi_type.3.gz
/usr/share/man/man3/smi_util.3.gz

References

Summary

In this tutorial we learn how to install libsmi-devel on Rocky Linux 8 using yum and dnf.