DropVPS Team
Writer: Cooper Reagan
How to Uninstall Samba on CentOS 8

Table of Contents
What you will read?
If Samba is no longer needed on your CentOS 8 system, you can remove it completely using DNF.
Step 1: Stop Samba services
Stop the Samba daemons before uninstalling:
sudo systemctl stop smb nmb
Step 2: Disable Samba services
Prevent Samba from starting automatically at boot:
sudo systemctl disable smb nmb
Step 3: Remove Samba packages
Uninstall Samba and related packages:
sudo dnf remove samba samba-client samba-common -y
Step 4: Enable and start Samba services
Ensure Samba services start on boot and are currently running:
sudo systemctl enable smb
sudo systemctl enable nmb
sudo systemctl start smb
sudo systemctl start nmb
sudo systemctl status smb
Samba is now installed on CentOS 8 and ready for configuration of shared directories and user access.
U
Loading...