Menu
User

DropVPS Team

Writer: Cooper Reagan

How to Uninstall Samba on CentOS 8

How to Uninstall Samba on CentOS 8

Publication Date

08/25/2025

Category

Articles

Reading Time

1 Min

Table of Contents

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.

Linux VPS
๐ŸงLinux VPS

Need a Linux Server for This?

Run Debian, Ubuntu, or any Linux distro on DropVPS โ€” fast NVMe SSD, full root access, and 24/7 support. Perfect for everything you just read.

  • Full Root Access
  • Debian & Ubuntu Ready
  • 99.99% Uptime
  • 24/7 Support
Get Linux VPS โ†’

No commitment ยท Cancel anytime

U
Loading...

Related Posts