Distribution-specific Package Installation
HOWTO install binary packages of Samba
This HOWTO lists the steps necessary to install binary packages of Samba 4 on selected distributions and mentions known pitfalls.
# yum install samba4
Note: Packages are of Samba version 4.0.0
Packages in Wheezy are very outdated, don't use them!
apt-get install samba
# pkg install net/samba41
12.04 Precise Pangolin
Packages in 12.04 are very outdated, don't use them!
13.10 Saucy Salamander
# apt-get install samba4
Note: Packages are of Samba version 4.0.3
14.04 LTS Trusty Tahr
# apt-get install samba
Note: Packages are of Samba version 4.1.6