How To Install libnfs-devel on Rocky Linux 8

In this tutorial we learn how to install libnfs-devel on Rocky Linux 8. libnfs-devel is Development files for libnfs

Introduction

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

What is libnfs-devel

The libnfs-devel package contains libraries and header files for developing applications that use libnfs.

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

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

sudo dnf -y install libnfs-devel

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

sudo yum -y install libnfs-devel

How To Uninstall libnfs-devel on Rocky Linux 8

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

sudo dnf remove libnfs-devel

libnfs-devel Package Contents on Rocky Linux 8

/usr/include/nfsc
/usr/include/nfsc/libnfs-raw-mount.h
/usr/include/nfsc/libnfs-raw-nfs.h
/usr/include/nfsc/libnfs-raw-nfs4.h
/usr/include/nfsc/libnfs-raw-nlm.h
/usr/include/nfsc/libnfs-raw-nsm.h
/usr/include/nfsc/libnfs-raw-portmap.h
/usr/include/nfsc/libnfs-raw-rquota.h
/usr/include/nfsc/libnfs-raw.h
/usr/include/nfsc/libnfs-zdr.h
/usr/include/nfsc/libnfs.h
/usr/lib64/libnfs.so
/usr/lib64/pkgconfig/libnfs.pc
/usr/share/doc/libnfs-devel
/usr/share/doc/libnfs-devel/ld_nfs.c
/usr/share/doc/libnfs-devel/nfs-fh.c
/usr/share/doc/libnfs-devel/nfs-io.c
/usr/share/doc/libnfs-devel/nfs-ln.c
/usr/share/doc/libnfs-devel/nfs4-cat-talloc.c
/usr/share/doc/libnfs-devel/nfs4-cat.c
/usr/share/doc/libnfs-devel/nfsclient-async.c
/usr/share/doc/libnfs-devel/nfsclient-bcast.c
/usr/share/doc/libnfs-devel/nfsclient-listservers.c
/usr/share/doc/libnfs-devel/nfsclient-raw.c
/usr/share/doc/libnfs-devel/nfsclient-sync.c
/usr/share/doc/libnfs-devel/portmap-client.c
/usr/share/doc/libnfs-devel/portmap-server.c

References

Summary

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