How To Install samba-dev on Ubuntu 20.04

In this tutorial we learn how to install samba-dev on Ubuntu 20.04. samba-dev is tools for extending Samba tools for extending Samba tools for extending Samba

Introduction

In this tutorial we learn how to install samba-dev on Ubuntu 20.04.

What is samba-dev

samba-dev is:

Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as a domain controller or member server in both NT4-style and Active Directory domains.

This package contains include files shared by the various Samba-based libraries.

Package: samba-dev Architecture: amd64 Version: 2:4.11.6+dfsg-0ubuntu1.8 Multi-Arch: same Priority: optional Section: devel Source: samba Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Samba Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1875 Depends: libc6-dev, libldb-dev (>= 2:2), libpopt-dev, libtalloc-dev, libtdb-dev, libtevent-dev, libwbclient-dev, samba-libs (= 2:4.11.6+dfsg-0ubuntu1.8) Filename: pool/main/s/samba/samba-dev_4.11.6+dfsg-0ubuntu1.8_amd64.deb Size: 221144 MD5sum: 65797ac00704194cad6db67e5aa8604a SHA1: 6b04bd40d3ceebae7829823bfc1ebd0cf44eba5b SHA256: 78626e36c846518e4d783c6003f4c0e1a6a90cae269ad8a384ab49a1614c78bc SHA512: 55c00f2e2422266e737ca2042fc1eec0c94589ce4ea7a8ec7bf956a4beeeb2b99ba25eb7e056a8483208693e812a315477509c3a391e033128818dd118287abb Homepage: http://www.samba.org Description-en: tools for extending Samba Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as a domain controller or member server in both NT4-style and Active Directory domains.

This package contains include files shared by the various Samba-based libraries.

Package: samba-dev Architecture: amd64 Version: 2:4.11.6+dfsg-0ubuntu1 Multi-Arch: same Priority: optional Section: devel Source: samba Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Samba Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1873 Depends: libc6-dev, libldb-dev (>= 2:2), libpopt-dev, libtalloc-dev, libtdb-dev, libtevent-dev, libwbclient-dev, samba-libs (= 2:4.11.6+dfsg-0ubuntu1) Filename: pool/main/s/samba/samba-dev_4.11.6+dfsg-0ubuntu1_amd64.deb Size: 221132 MD5sum: f32d2c8d0b5b091156190f00a11d10ba SHA1: cf3fbf12d1b92a51f0c359a0ae1f3a76c3db11d8 SHA256: f782b54b907425190da15fce9827de4b0de1b18f9aa7dc09f948597b93069f10 Homepage: http://www.samba.org Description-en: tools for extending Samba Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as a domain controller or member server in both NT4-style and Active Directory domains.

This package contains include files shared by the various Samba-based libraries.

There are three methods to install samba-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install samba-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install samba-dev using apt-get by running the following command:

sudo apt-get -y install samba-dev

Install samba-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install samba-dev using apt by running the following command:

sudo apt -y install samba-dev

Install samba-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install samba-dev using aptitude by running the following command:

sudo aptitude -y install samba-dev

How To Uninstall samba-dev on Ubuntu 20.04

To uninstall only the samba-dev package we can use the following command:

sudo apt-get remove samba-dev

Uninstall samba-dev And Its Dependencies

To uninstall samba-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove samba-dev

Remove samba-dev Configurations and Data

To remove samba-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge samba-dev

Remove samba-dev configuration, data, and all of its dependencies

We can use the following command to remove samba-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge samba-dev

References

Summary

In this tutorial we learn how to install samba-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.