How To Install nfs-utils on CentOS 7

In this tutorial we learn how to install nfs-utils on CentOS 7. nfs-utils is NFS utilities and supporting clients and daemons for the kernel

Introduction

In this tutorial we learn how to install nfs-utils on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nfs-utils.

Install nfs-utils on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nfs-utils using yum by running the following command:

sudo yum -y install nfs-utils

Install nfs-utils on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install nfs-utils

How To Uninstall nfs-utils on CentOS 7

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

sudo dnf remove nfs-utils

References

Summary

In this tutorial we learn how to install nfs-utils on CentOS 7 using yum and dnf.