How to Uninstall Samba on CentOS 8

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.

Share:

More Posts

How to Install Maven on macOS 2025

What you will read?1 Check for Java Installation2 Install Homebrew (If Not Installed)3 Install Maven via Homebrew4 Verify Environment Variables (Optional)5 Create a Sample Maven

How to Use Google SMTP Server

What you will read?1 Step 1: Enable SMTP Access in Gmail2 Step 2: Secure Connection with TLS3 Step 3: Send an Email via SMTP4 Step

how to install wine on RHEL

What you will read?1 Check RHEL version and CPU architecture2 Update system and install base tools3 Verify subscription and enable CodeReady Builder4 Enable EPEL repository5

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments