Difference between revisions of "Obtaining Samba"

From SambaWiki
Jump to: navigation, search
m (Stable version (recommended))
m (Add whitelines for better readability. Adapt version in example to the latest current stable tree.)
Line 6: Line 6:
  
 
Further information about Samba Release Planning and Supported Release Lifetime, can be found on the [[Samba_Release_Planning|Samba Release Planning]] page.
 
Further information about Samba Release Planning and Supported Release Lifetime, can be found on the [[Samba_Release_Planning|Samba Release Planning]] page.
 +
 +
 +
 +
  
 
= Development versions =
 
= Development versions =
Line 20: Line 24:
  
 
  $ git clone git://git.samba.org/samba.git samba-master
 
  $ git clone git://git.samba.org/samba.git samba-master
 +
 +
  
 
== Development version of a specific branch ==
 
== Development version of a specific branch ==
Line 25: Line 31:
 
The v*-test branches contain the latest changes and patches since the last official release of that source tree.
 
The v*-test branches contain the latest changes and patches since the last official release of that source tree.
  
The following example demonstrates the checkout of the latest sources of Samba 4.1, scheduled for the next 4.1.x release:
+
The following example demonstrates the checkout of the latest sources of Samba 4.2, scheduled for the next 4.2.x release:
  
  $ git clone -b v4-1-test git://git.samba.org/samba.git samba-v4-1-test
+
  $ git clone -b v4-2-test git://git.samba.org/samba.git samba-v4-2-test
  
 
alternatively:
 
alternatively:
  
  $ git clone -b v4-1-test http://git.samba.org/samba.git samba-v4-1-test
+
  $ git clone -b v4-2-test http://git.samba.org/samba.git samba-v4-2-test
  
  

Revision as of 18:17, 24 August 2015

Stable version (recommended)

Download the latest version of Samba from https://www.samba.org/.

It is always recommended that you install the latest version of the current stable release. If you need to use a previous series, always choose the last version from the Maintainance Mode series or at least from the Security Fixes Only Mode. Older version may not contain all improvements, bug and security fixes. If you find that you require help and ask e. g. on the Samba Mailing List, you will typically be told to try a recent version, to ensure that the problem isn't fixed in the meantime.

Further information about Samba Release Planning and Supported Release Lifetime, can be found on the Samba Release Planning page.



Development versions

samba-master

Warning: Never install a development version in production! It may contain untested features and can cause damages to your installation! Development releases are for testing purposes only!

„samba-master“ contains the source of the upcoming release series.

NOTE: Only do this if you want to test the very latest development Samba branch, do not not use packages from git in production!

To download the latest samba-master repository, run

$ git clone git://git.samba.org/samba.git samba-master


Development version of a specific branch

The v*-test branches contain the latest changes and patches since the last official release of that source tree.

The following example demonstrates the checkout of the latest sources of Samba 4.2, scheduled for the next 4.2.x release:

$ git clone -b v4-2-test git://git.samba.org/samba.git samba-v4-2-test

alternatively:

$ git clone -b v4-2-test http://git.samba.org/samba.git samba-v4-2-test


Updating a local git repository

If you already have downloaded a development source tree via „git“ and want to update it to the latest version, run the following command out of your corresponding git source directory:

$ git pull

If you receive the following error

fatal: Unable to create '[...]/.git/index.lock': File exists.

run

$ git clean -x -f -d

to reset your tree.