How to upgrade Samba 4 from very old version to the latest version

7,906

OK I found good documentation about that. If any one has better answer or any notes, please post them.

The Update Process

Run the following steps, whether you are updating a Samba Active Directory (AD) domain controller (DC), a Samba NT4-style PDC, a Samba domain member, or a standalone installation:
Stop all Samba services.
Create a backup.
Read the release notes of skipped versions. They contain important information, such as new features, changed parameter, and bug fixes. In case you switch to new major release, read the release notes of the initial version (x.y.0) and the ones from minor versions up to the new version you will update to. For example, if you update from 4.4.4 to 4.6.2, read the 4.5.0, 4.6.0, 4.6.1, and 4.6.2 release notes.
Install the latest version over your existing one:
If you compile Samba from the sources, use the same configure options as used for your previous version. For more information, see Build Samba From the Sources.
If you update using packages, read the distribution documentation for information how to update.
Start Samba.
Start the same daemons as on your previous version:
On Samba AD DCs: samba
On Samba NT4-style PDC/BDCs: smbd, nmbd
On Samba domain members: smbd, nmbd (winbind, if used)
On Samba standalone hosts: smbd
On Samba AD DCs only: Run the Samba AD DC database check.
Check your Samba log files for errors.
Test your updated installation.

https://wiki.samba.org/index.php/Updating_Samba#The_Update_Process

Share:
7,906
Mohammed Noureldin
Author by

Mohammed Noureldin

Austrian software engineer with a focus not only on coding, but also on every single detail of software engineering, equipped with a diversity of promising and useful skills, like deep knowledge in different programming languages and frameworks, hands-on embedded systems, and a thorough DevOps experience. Always interested in the latest cutting-edge technologies, and recently started gaining deep knowledge and experience in the field of machine learning and artificial intelligence. My huge passion for technology motivated me to self-educate myself in these different technical fields, and the vision to the future keeps pulling me to develop myself continuously. Additionally, a pharmacist holds a doctoral degree (Ph.D.) in pharmacology from the University of Graz in Austria. Besides being a husband to a beautiful doctor, but not a father yet. To keep myself fit (though in the being time I am not really committed), swimming, table tennis, and cycling are my favorites. Occasionally I like to play some computer or board games. If You Are Working On Something That You Really Care About, You Don’t Have To Be Pushed. The Vision Pulls You. – Steve Jobs

Updated on September 18, 2022

Comments

  • Mohammed Noureldin
    Mohammed Noureldin over 1 year

    Some bugs are annoying me in my Samba 4.4.5 (installed by building from source), and I want to upgrade it to 4.6.6 (the current last version).

    I know how to build Samba from source, but I am not sure how to upgrade it correctly without losing my domain controller data (Samba is my domain controller). The documentation was not very clear about that (at least I didn't find a helpful guide).

    So what is the correct way to upgrade Samba? should I download and install every single patch!? I hope not, because it is very boring and not practical solution. or is there any more efficient solution?

    So generally did some body upgrade Samba from any old version to much newer version with 100% success? if yes, how?