How To Install cifs-utils on Rocky Linux 8

cifs-utils is Utilities for mounting and managing CIFS mounts

Introduction

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

What is cifs-utils

The SMB/CIFS protocol is a standard file sharing protocol widely deployed on Microsoft Windows machines. This package contains tools for mounting shares on Linux using the SMB/CIFS protocol. The tools in this package work in conjunction with support in the kernel to allow one to mount a SMB/CIFS share onto a client and use it as if it were a standard Linux file system.

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

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

sudo dnf -y install cifs-utils

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

sudo yum -y install cifs-utils

How To Uninstall cifs-utils on Rocky Linux 8

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

sudo dnf remove cifs-utils

cifs-utils Package Contents on Rocky Linux 8

/etc/cifs-utils
/etc/cifs-utils/idmap-plugin
/etc/request-key.d/cifs.idmap.conf
/etc/request-key.d/cifs.spnego.conf
/usr/bin/cifscreds
/usr/bin/getcifsacl
/usr/bin/setcifsacl
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/5aa5ae98977620f6c547819394be1362e3d050
/usr/lib/.build-id/22
/usr/lib/.build-id/22/3b5e5a60812a875f56585df0bc7df84e3ab75b
/usr/lib/.build-id/35
/usr/lib/.build-id/35/b4856ce3933e7d62eea9005961aa2e32366d25
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/119afcd3252bf02d4e72457c38d506c476500d
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/b72fb926efe74909e13590a687411bb3f34196
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/915b622b3ad85fbfa522e3e8108e0e7a2810ac
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/716c42d71374fcc32c1d0acbd91c4bfaefd333
/usr/lib64/cifs-utils
/usr/lib64/cifs-utils/idmapwb.so
/usr/sbin/cifs.idmap
/usr/sbin/cifs.upcall
/usr/sbin/mount.cifs
/usr/share/man/man1/cifscreds.1.gz
/usr/share/man/man1/getcifsacl.1.gz
/usr/share/man/man1/setcifsacl.1.gz
/usr/share/man/man8/cifs.idmap.8.gz
/usr/share/man/man8/cifs.upcall.8.gz
/usr/share/man/man8/idmapwb.8.gz
/usr/share/man/man8/mount.cifs.8.gz

References

Summary

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