User Tools

Site Tools


samba:remove-sama

Completely remove samba from your system

This is how I do it.

apt-get autoremove --purge krb5-user krb5-config libwbclient0 libldb2  python3-ldb  python3-samba  samba-common samba-common-bin samba-ad-dc samba-dsdb-modules samba-libs  ldb-tools libldb2  libnss-winbind  libpam-winbind libsmbclient smbclient winbind
apt autoremove -y && apt-get autoclean && apt-get clean && apt-get remove --purge $(dpkg -l | grep “^rc” | grep "samba" | awk ‘{print $2}’)
rm -Rf /etc/samba
rm -Rfv /var/lib/samba
reboot

Caponato's Samba notebook. Start here or else Main menu

samba/remove-sama.txt · Last modified: 2024/06/09 11:26 by caponato