How To Install samba-common-tools on CentOS 8

samba-common-tools is Tools for Samba servers and clients

Introduction

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

What is samba-common-tools

The samba-common-tools package contains tools for Samba servers and SMB/CIFS clients.

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

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

sudo dnf -y install samba-common-tools

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

sudo yum -y install samba-common-tools

How To Uninstall samba-common-tools on CentOS 8

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

sudo dnf remove samba-common-tools

samba-common-tools Package Contents on CentOS 8

/usr/bin/net
/usr/bin/pdbedit
/usr/bin/profiles
/usr/bin/smbcontrol
/usr/bin/smbpasswd
/usr/bin/testparm
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/38beae11ef3153b6e8e04ede046b16315b9660
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/0da427dfc6f4421ea824b4adb68e5428c64e76
/usr/lib/.build-id/87
/usr/lib/.build-id/87/74c4fc19e0305c9f5ffb9965cbaacaaee9811b
/usr/lib/.build-id/90
/usr/lib/.build-id/90/ed580f6e81ec375bd7958805dd633805903972
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/122f9c1682064721d33080ed6ddc45aa9809aa
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/468c71087b2387994ae6f1437f6f3464cf35b9
/usr/share/man/man1/profiles.1.gz
/usr/share/man/man1/smbcontrol.1.gz
/usr/share/man/man1/testparm.1.gz
/usr/share/man/man8/net.8.gz
/usr/share/man/man8/pdbedit.8.gz
/usr/share/man/man8/smbpasswd.8.gz

References

Summary

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