How To Install cifs-utils on CentOS 8
Introduction
In this tutorial we learn how to install cifs-utils
on CentOS 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the cifs-utils
package we can use the following command:
sudo dnf remove cifs-utils
cifs-utils Package Contents on CentOS 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/31
/usr/lib/.build-id/31/13f48cff7ea83ed5584af46b3211d8a4baff00
/usr/lib/.build-id/47
/usr/lib/.build-id/47/4b06a0a35aeb6bbc793663167c849c403d5a6c
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/45cddeb572178a421e68de8b92276010d783f3
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/e482bce1627ffbf9907cdcb32af8464c7630a4
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/774c013f571b9dd33523092b2cac79c9ae7b44
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/2463a8d2ca77a237a652ad2bda5ea3f5e26845
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/25025fe9b1985078b78b012d279c1ccdfdf1eb
/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 CentOS 8 using yum and dnf.