How To Install nfs-utils on Rocky Linux 8

In this tutorial we learn how to install nfs-utils on Rocky Linux 8. nfs-utils is NFS utilities and supporting clients and daemons for the kernel NFS server

Introduction

In this tutorial we learn how to install nfs-utils on Rocky Linux 8.

What is nfs-utils

The nfs-utils package provides a daemon for the kernel NFS server and related tools, which provides a much higher level of performance than the traditional Linux NFS server used by most users. This package also contains the showmount program. Showmount queries the mount daemon on a remote host for information about the NFS (Network File System) server on the remote host. For example, showmount can display the clients which are mounted on that host. This package also contains the mount.nfs and umount.nfs program.

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

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

sudo dnf -y install nfs-utils

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

sudo yum -y install nfs-utils

How To Uninstall nfs-utils on Rocky Linux 8

To uninstall only the nfs-utils package we can use the following command:

sudo dnf remove nfs-utils

nfs-utils Package Contents on Rocky Linux 8

/etc/exports.d
/etc/gssproxy/24-nfs-server.conf
/etc/modprobe.d/lockd.conf
/etc/nfs.conf
/etc/nfsmount.conf
/etc/request-key.d/id_resolver.conf
/sbin/mount.nfs
/sbin/mount.nfs4
/sbin/nfsdcltrack
/sbin/rpc.statd
/sbin/umount.nfs
/sbin/umount.nfs4
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/a202919be11fec0250bd46f08dd3d58de626e5
/usr/lib/.build-id/22
/usr/lib/.build-id/22/564ded7056ed112b46d309145ca674b5b1faa6
/usr/lib/.build-id/23
/usr/lib/.build-id/23/d0bee7c898a381beeebed15c33e4559f4536f2
/usr/lib/.build-id/28
/usr/lib/.build-id/28/9e75c1afe13b2d2c01c6a9eb13ac909d87fe27
/usr/lib/.build-id/33
/usr/lib/.build-id/33/71380c090125746028b8c4d18974d0b09e923b
/usr/lib/.build-id/39
/usr/lib/.build-id/39/85517c4437dd319574f7c38db2e7088b6805b7
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/47a31c6eb7eebb26273d7422cbc857b9244e61
/usr/lib/.build-id/44
/usr/lib/.build-id/44/fa7238db169d40934b28aa11aa58768468acc0
/usr/lib/.build-id/61
/usr/lib/.build-id/61/0f374e17e0e1d2453eae846485db2c24f44a0f
/usr/lib/.build-id/67
/usr/lib/.build-id/67/8d8059907f22b0eabdf972c018c305f2327780
/usr/lib/.build-id/70
/usr/lib/.build-id/70/b797f9800d5122e473be167d8d16bcbe9e74c6
/usr/lib/.build-id/82
/usr/lib/.build-id/82/eabbdf8b5c188d7a5965a31d4ae3a0b8d09a22
/usr/lib/.build-id/98
/usr/lib/.build-id/98/be79f6cb453795eeb5cc8efa116a296750014f
/usr/lib/.build-id/98/d68b80de6a21eac853d27e21dfd8e8924f4510
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/c706258cb6dedcdc31cde26896699095f1c28f
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/8821f32c6c5b07320ce58232433a46fb327948
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/a7eb7f56d21969022be821979d715d157720f1
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/31c57015801ed624c6144106904167fad93264
/usr/lib/.build-id/f2/6c19cf5368a5b7964a48aca701e8e0c87c6d14
/usr/lib/systemd/system-generators/nfs-server-generator
/usr/lib/systemd/system-generators/rpc-pipefs-generator
/usr/lib/systemd/system/auth-rpcgss-module.service
/usr/lib/systemd/system/nfs-blkmap.service
/usr/lib/systemd/system/nfs-client.target
/usr/lib/systemd/system/nfs-convert.service
/usr/lib/systemd/system/nfs-idmapd.service
/usr/lib/systemd/system/nfs-mountd.service
/usr/lib/systemd/system/nfs-server.service
/usr/lib/systemd/system/nfs-utils.service
/usr/lib/systemd/system/nfsdcld.service
/usr/lib/systemd/system/proc-fs-nfsd.mount
/usr/lib/systemd/system/rpc-gssd.service
/usr/lib/systemd/system/rpc-statd-notify.service
/usr/lib/systemd/system/rpc-statd.service
/usr/lib/systemd/system/rpc_pipefs.target
/usr/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount
/usr/libexec/nfs-utils
/usr/libexec/nfs-utils/nfsconvert.sh
/usr/sbin/blkmapd
/usr/sbin/exportfs
/usr/sbin/mountstats
/usr/sbin/nfsconf
/usr/sbin/nfsconvert
/usr/sbin/nfsdcld
/usr/sbin/nfsdclddb
/usr/sbin/nfsdclnts
/usr/sbin/nfsidmap
/usr/sbin/nfsiostat
/usr/sbin/nfsref
/usr/sbin/nfsstat
/usr/sbin/rpc.gssd
/usr/sbin/rpc.idmapd
/usr/sbin/rpc.mountd
/usr/sbin/rpc.nfsd
/usr/sbin/rpcdebug
/usr/sbin/showmount
/usr/sbin/sm-notify
/usr/sbin/start-statd
/usr/share/doc/nfs-utils
/usr/share/doc/nfs-utils/ChangeLog
/usr/share/doc/nfs-utils/KNOWNBUGS
/usr/share/doc/nfs-utils/NEW
/usr/share/doc/nfs-utils/README
/usr/share/doc/nfs-utils/THANKS
/usr/share/doc/nfs-utils/TODO
/usr/share/man/man3/nfs4_uid_to_name.3.gz
/usr/share/man/man5/exports.5.gz
/usr/share/man/man5/idmapd.conf.5.gz
/usr/share/man/man5/nfs.5.gz
/usr/share/man/man5/nfs.conf.5.gz
/usr/share/man/man5/nfsmount.conf.5.gz
/usr/share/man/man7/nfs.systemd.7.gz
/usr/share/man/man7/nfsd.7.gz
/usr/share/man/man8/blkmapd.8.gz
/usr/share/man/man8/exportfs.8.gz
/usr/share/man/man8/gssd.8.gz
/usr/share/man/man8/idmapd.8.gz
/usr/share/man/man8/mount.nfs.8.gz
/usr/share/man/man8/mountd.8.gz
/usr/share/man/man8/mountstats.8.gz
/usr/share/man/man8/nfsconf.8.gz
/usr/share/man/man8/nfsd.8.gz
/usr/share/man/man8/nfsdcld.8.gz
/usr/share/man/man8/nfsdclddb.8.gz
/usr/share/man/man8/nfsdclnts.8.gz
/usr/share/man/man8/nfsdcltrack.8.gz
/usr/share/man/man8/nfsidmap.8.gz
/usr/share/man/man8/nfsiostat.8.gz
/usr/share/man/man8/nfsref.8.gz
/usr/share/man/man8/nfsstat.8.gz
/usr/share/man/man8/rpc.gssd.8.gz
/usr/share/man/man8/rpc.idmapd.8.gz
/usr/share/man/man8/rpc.mountd.8.gz
/usr/share/man/man8/rpc.nfsd.8.gz
/usr/share/man/man8/rpc.sm-notify.8.gz
/usr/share/man/man8/rpc.statd.8.gz
/usr/share/man/man8/rpcdebug.8.gz
/usr/share/man/man8/showmount.8.gz
/usr/share/man/man8/sm-notify.8.gz
/usr/share/man/man8/statd.8.gz
/usr/share/man/man8/umount.nfs.8.gz
/var/lib/nfs
/var/lib/nfs/etab
/var/lib/nfs/rmtab
/var/lib/nfs/rpc_pipefs
/var/lib/nfs/statd
/var/lib/nfs/statd/sm
/var/lib/nfs/statd/sm.bak
/var/lib/nfs/statd/state
/var/lib/nfs/v4recovery

References

Summary

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