Menu
Buy VPS
Payments
Tools
User

DropVPS Team

Writer: Cooper Reagan

How to Uninstall Samba on Debian 12

How to Uninstall Samba on Debian 12

Publication Date

Category

Articles

Reading Time

1 Min

Table of Contents

If Samba is no longer needed on your Debian 12 system, you can remove it completely using the package manager.

Step 1: Stop Samba services

Before removing, stop the Samba daemons:

sudo systemctl stop smbd nmbd

Step 2: Disable Samba services

Prevent Samba from starting automatically at boot:

sudo systemctl disable smbd nmbd

Step 3: Remove Samba packages

Uninstall Samba and purge configuration files:

sudo apt remove --purge samba -y

Step 4: Clean up unused dependencies

Remove packages that are no longer required:

sudo apt autoremove -y

Step 5: Verify removal

Check if Samba services still exist:

systemctl status smbd

It should show that the service is not found or inactive. Samba is now fully uninstalled from Debian 12.

Linux VPS

Follow DropVPS on Google

Add DropVPS as a preferred source to see our latest VPS guides and tutorials surfaced first in Google Search and AI Overviews.

🐧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