How to Install and Uninstall samba Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: April 23,2024

1. Install "samba" package

Here is a brief guide to show you how to install samba on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install samba

2. Uninstall "samba" package

This tutorial shows how to uninstall samba on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove samba $ sudo apt autoclean && sudo apt autoremove

3. Information about the samba package on Ubuntu 20.04 LTS (Focal Fossa)

Package: samba
Architecture: amd64
Version: 2:4.15.13+dfsg-0ubuntu0.20.04.7
Priority: optional
Section: net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Samba Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 17297
Pre-Depends: dpkg (>= 1.15.6~), init-system-helpers (>= 1.54~)
Depends: adduser, libpam-modules, libpam-runtime (>= 1.0.1-11), lsb-base (>= 4.1+Debian), procps, python3 (<< 3.9), python3-dnspython, python3-samba, samba-common (= 2:4.15.13+dfsg-0ubuntu0.20.04.7), samba-common-bin (= 2:4.15.13+dfsg-0ubuntu0.20.04.7), tdb-tools, python3 (>= 3.8~), python3:any, libbsd0 (>= 0.6.0), libc6 (>= 2.14), libgnutls30 (>= 3.6.12), libldb2 (>= 2:2.4.4-0ubuntu0.20.04.2~), libpopt0 (>= 1.14), libpython3.8 (>= 3.8.2), libtalloc2 (>= 2.3.3~), libtasn1-6 (>= 4.14), libtdb1 (>= 1.4.4~), libtevent0 (>= 0.11.0~), libwbclient0 (= 2:4.15.13+dfsg-0ubuntu0.20.04.7), samba-libs (= 2:4.15.13+dfsg-0ubuntu0.20.04.7)
Recommends: attr, logrotate, python3-markdown, samba-dsdb-modules, samba-vfs-modules
Suggests: bind9 (>= 1:9.5.1), bind9utils, ctdb, ldb-tools, ntp | chrony (>= 3.0-1), smbldap-tools, ufw, winbind
Enhances: bind9, ntp
Filename: pool/main/s/samba/samba_4.15.13+dfsg-0ubuntu0.20.04.7_amd64.deb
Size: 1166548
MD5sum: 58f97ce8e382e5add42040434d726406
SHA1: e7ee8dfdfcccc247eeaec1fd7ed9e405d59d7d97
SHA256: 5b242e95af158f00cabf0d211a9a006277e2ee9e7dc8012524a8977eae77ab9d
SHA512: 02248d7b53eb0ef1a1cd71e661fce24d33ae828f0bc8cadbee27cf46b955bd908245344b3268e10075399c866f81d8815d445727eb0c373212f2c7f84e97e922
Homepage: http://www.samba.org
Description: SMB/CIFS file, print, and login server for Unix
Description-md5: 3dcec89b7baaa655b2536933cdaeab54
Task: samba-server

Package: samba
Architecture: amd64
Version: 2:4.11.6+dfsg-0ubuntu1
Priority: optional
Section: net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Samba Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 16257
Pre-Depends: dpkg (>= 1.15.6~), init-system-helpers (>= 1.54~)
Depends: adduser, libpam-modules, libpam-runtime (>= 1.0.1-11), lsb-base (>= 4.1+Debian), procps, python3 (<< 3.9), python3-dnspython, python3-samba, samba-common (= 2:4.11.6+dfsg-0ubuntu1), samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1), tdb-tools, python3 (>= 3.8~), python3:any, libbsd0 (>= 0.6.0), libc6 (>= 2.14), libgnutls30 (>= 3.6.5), libldb2 (>= 2:2.0.8~), libpopt0 (>= 1.14), libpython3.8 (>= 3.8.2), libtalloc2 (>= 2.2.0~), libtasn1-6 (>= 4.14), libtdb1 (>= 1.4.2~), libtevent0 (>= 0.10.0~), libwbclient0 (= 2:4.11.6+dfsg-0ubuntu1), samba-libs (= 2:4.11.6+dfsg-0ubuntu1)
Recommends: attr, logrotate, python3-markdown, samba-dsdb-modules, samba-vfs-modules
Suggests: bind9 (>= 1:9.5.1), bind9utils, ctdb, ldb-tools, ntp | chrony (>= 3.0-1), smbldap-tools, ufw, winbind
Enhances: bind9, ntp
Filename: pool/main/s/samba/samba_4.11.6+dfsg-0ubuntu1_amd64.deb
Size: 971172
MD5sum: b8d24bbf56f957bd051a7f290d875c5a
SHA1: 13a7dfd5a70ba29700e720e3a6fb74aa933a8249
SHA256: f673d5512f6467634f5c4122f05d2fbc1d2300deee86ec86dbfd90b650278b64
Homepage: http://www.samba.org
Description: SMB/CIFS file, print, and login server for Unix
Description-md5: 3dcec89b7baaa655b2536933cdaeab54
Task: samba-server