How To Install samba-client on CentOS 8

samba-client is Samba client programs

Introduction

In this tutorial we learn how to install samba-client on CentOS 8.

What is samba-client

The samba-client package provides some SMB/CIFS clients to complement the built-in SMB/CIFS filesystem in Linux. These clients allow access of SMB/CIFS shares and printing to SMB/CIFS printers.

We can use yum or dnf to install samba-client on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install samba-client.

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

sudo dnf -y install samba-client

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

sudo yum -y install samba-client

How To Uninstall samba-client on CentOS 8

To uninstall only the samba-client package we can use the following command:

sudo dnf remove samba-client

samba-client Package Contents on CentOS 8

/usr/bin/cifsdd
/usr/bin/dbwrap_tool
/usr/bin/dumpmscat
/usr/bin/findsmb
/usr/bin/mdfind
/usr/bin/mvxattr
/usr/bin/nmblookup
/usr/bin/oLschema2ldif
/usr/bin/regdiff
/usr/bin/regpatch
/usr/bin/regshell
/usr/bin/regtree
/usr/bin/rpcclient
/usr/bin/samba-regedit
/usr/bin/sharesec
/usr/bin/smbcacls
/usr/bin/smbclient
/usr/bin/smbcquotas
/usr/bin/smbget
/usr/bin/smbprint
/usr/bin/smbspool
/usr/bin/smbtar
/usr/bin/smbtree
/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/0a2462b877480c46036abff3463901bb898a8b
/usr/lib/.build-id/21
/usr/lib/.build-id/21/9f505b6f70fa2a6ac114f7960454a35bafdb54
/usr/lib/.build-id/43
/usr/lib/.build-id/43/5d6c21a435bab11f558488210c554857d3f0f1
/usr/lib/.build-id/65/ad8cda7f70f43819845d8b6aa3bcc40ae1d1ce
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/de82a5b71eb7d5682758c471cc4d67db94c993
/usr/lib/.build-id/73
/usr/lib/.build-id/73/368c3c8935b3c58862cc986acfd91aee0318ed
/usr/lib/.build-id/82
/usr/lib/.build-id/82/99fcfaabc64d227e17ad8e64a208bc8cd659bf
/usr/lib/.build-id/93
/usr/lib/.build-id/93/0eb414977bcf487fde572aa648a893d1db77bb
/usr/lib/.build-id/b3/3aa6745f165f7598a92999b4ea252d16e3edb9
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/d55668da15d4f2815a1a090e2215b184db6e43
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/3350fcc2cb2f3aae89961cd5c94c2e7a06f25a
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/adbd89be8ba7482d30e96d7561f07f04b84733
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/66e2e9e6070b22d66aaa0cb004dcdd2276b68b
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/90c246a0d94c34eb2fe6c647e516a3808b0973
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/ccdf3c2ab62c491abe30de9fbcfe238ff371f8
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/3a4e0d7d8eaf8e482fa5dae1c7a8db7933fe57
/usr/lib/.build-id/e1/50f85295c7ad2f8d8d1dd7dfe64220be737880
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/a3ae74003267340fe32de70375da16f56e9ca7
/usr/lib/.build-id/e7/06267b313be0b5a486229abcb220bb476cf249
/usr/lib/.build-id/f0/b7c827d9dff0ac3fbbf6e502e77f5dbfa8030d
/usr/libexec/samba
/usr/libexec/samba/cups_backend_smb
/usr/share/doc/samba-client
/usr/share/doc/samba-client/README.smbspool
/usr/share/man/man1/dbwrap_tool.1.gz
/usr/share/man/man1/findsmb.1.gz
/usr/share/man/man1/log2pcap.1.gz
/usr/share/man/man1/mdfind.1.gz
/usr/share/man/man1/mvxattr.1.gz
/usr/share/man/man1/nmblookup.1.gz
/usr/share/man/man1/oLschema2ldif.1.gz
/usr/share/man/man1/regdiff.1.gz
/usr/share/man/man1/regpatch.1.gz
/usr/share/man/man1/regshell.1.gz
/usr/share/man/man1/regtree.1.gz
/usr/share/man/man1/rpcclient.1.gz
/usr/share/man/man1/sharesec.1.gz
/usr/share/man/man1/smbcacls.1.gz
/usr/share/man/man1/smbclient.1.gz
/usr/share/man/man1/smbcquotas.1.gz
/usr/share/man/man1/smbget.1.gz
/usr/share/man/man1/smbtar.1.gz
/usr/share/man/man1/smbtree.1.gz
/usr/share/man/man5/smbgetrc.5.gz
/usr/share/man/man7/traffic_learner.7.gz
/usr/share/man/man7/traffic_replay.7.gz
/usr/share/man/man8/cifsdd.8.gz
/usr/share/man/man8/samba-regedit.8.gz
/usr/share/man/man8/smbspool.8.gz

References

Summary

In this tutorial we learn how to install samba-client on CentOS 8 using yum and dnf.