How to uninstall Samba on Ubuntu 22.04 or 20.04
In this tutorial, we are going to show you how to uninstall Samba on Ubuntu 22.04 or 20.04, entirely.
But what is Samba?
Samba is like a friendly translator for computers. Imagine your computer speaks one language (let’s call it “Computerish“) and your friend’s computer speaks a different one (maybe “Windowese“). Samba helps them understand each other.
So, if you have a cool file or a printer on your computer that you want to share with your friend’s Windows computer, Samba makes that happen. It’s like the magic bridge that lets files and stuff go back and forth smoothly, even if your computers speak different languages.
It’s teamwork in the world of computer languages!
But no matter how much cool Samba is, sometimes you just don’t need it, which is why you are here and why we are going to jump right to the point and show you how to uninstall Samba on Ubuntu 22.04 or 20.04.
How to uninstall Samba
Let’s check what Samba version we have.
Alright Samba, time to go. Use the following command to remove Samba.
sudo apt remove samba
Hit “Y” and enter.
But even after this, you will have some Samba leftovers on your system. You can find some of those in /etc/samba/.
Which is we are going to run purge command.
Make sure you are not inside of /etc/samba/ while running this command!
sudo apt purge samba
But there is something else.
Samba will store user-specific and other data inside of /var/lib/samba.
If you are sure you won’t need that Samba data again, feel free to remove it like this.
sudo rm -rf /var/lib/samba/
Just careful with this command, don’t delete the wrong directory by accident.
Also, if you want to remove packages and Samba dependencies that are not needed by any other software on your system, run this.
sudo apt autoremove
And that’s it, you have successfully uninstalled Samba
Now all that is left is to have one cup of coffee and learn more about our Linux and Windows VPS offers. Check out our plans and feel free to reach out to us through the live chat in the bottom right corner if you have any questions.
We hope that this article helped you in your mission. Until next time!