Bob of Donelson Trophy
2016-Sep-28 12:00 UTC
[Samba] Upgrading samba from source over debian packages
On 2016-09-28 06:41, Rowland Penny via samba wrote:> On Wed, 28 Sep 2016 06:29:00 -0500 > Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: > > On 2016-09-28 01:04, Marc Muehlfeld via samba wrote: > > Hi, > > Am 27.09.2016 um 21:14 schrieb Elias Pereira via samba: > > Maybe, it would be nice to put on the wiki that step regarding > uninstall the old packages version. I believe that a good portion > of users unaware that step. :) > I only can add a general and installation, because distros have > different package managers and you can run into dependencies > problems. For example, when you uninstall Samba, cifs-utils is also > automatically removed - even if you don't want to compile this > yourself. > > I will see if I find a place where this general information fits > tonight. > > Regards, > MarcOut of curiosity I ran "apt remove samba" on Ubuntu 16.04.1LTS and removal adds "winbind" packages "will be REMOVED" even though I don't want to remove winbind. So, " . . . because distros have different package managers and you can run into dependencies problems." yes, I understand you reluctance to adding "uninstall" instructions in the wiki. IMHO, this is actually a distro related issue. Marc, you probably already know this but, I just thought everyone should be aware. I have also seen different types of distro related issues, like this, in CentOS and Fedora experiments where package manager is going to un-install and/or install some package due to dependency requirements. Bob, if you removing Samba to compile your own version, then it doesn't matter that winbind is also removed, compiling Samba also provides winbind. Rowland Thanks. I was just accelerated my searching to find the "that" answer. -- _______________________________ Bob Wooden of Donelson Trophy
Bob of Donelson Trophy
2016-Sep-28 12:08 UTC
[Samba] Upgrading samba from source over debian packages
On 2016-09-28 07:00, Bob of Donelson Trophy via samba wrote:> On 2016-09-28 06:41, Rowland Penny via samba wrote: > >> On Wed, 28 Sep 2016 06:29:00 -0500 >> Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: >> >> On 2016-09-28 01:04, Marc Muehlfeld via samba wrote: >> >> Hi, >> >> Am 27.09.2016 um 21:14 schrieb Elias Pereira via samba: >> >> Maybe, it would be nice to put on the wiki that step regarding >> uninstall the old packages version. I believe that a good portion >> of users unaware that step. :) >> I only can add a general and installation, because distros have >> different package managers and you can run into dependencies >> problems. For example, when you uninstall Samba, cifs-utils is also >> automatically removed - even if you don't want to compile this >> yourself. >> >> I will see if I find a place where this general information fits >> tonight. >> >> Regards, >> Marc > > Out of curiosity I ran "apt remove samba" on Ubuntu 16.04.1LTS and > removal adds "winbind" packages "will be REMOVED" even though I don't > want to remove winbind. So, " . . . because distros have different > package managers and you can run into dependencies problems." yes, I > understand you reluctance to adding "uninstall" instructions in the > wiki. IMHO, this is actually a distro related issue. > > Marc, you probably already know this but, I just thought everyone > should be aware. I have also seen different types of distro related > issues, like this, in CentOS and Fedora experiments where package > manager is going to un-install and/or install some package due to > dependency requirements. > > Bob, if you removing Samba to compile your own version, then it doesn't > matter that winbind is also removed, compiling Samba also provides > winbind. > > Rowland > > Thanks. I was just accelerated my searching to find the "that" answer. > > -- > _______________________________ > > Bob Wooden of Donelson TrophyUh-h-h big fingers two different thoughts . . . actually should have said "Thanks, _you have just_ accelerated my searching . . ." -- _______________________________ Bob Wooden of Donelson Trophy
Rowland Penny
2016-Sep-28 12:13 UTC
[Samba] Upgrading samba from source over debian packages
On Wed, 28 Sep 2016 07:00:17 -0500 Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote:> On 2016-09-28 06:41, Rowland Penny via samba wrote: > > > On Wed, 28 Sep 2016 06:29:00 -0500 > > Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: > > > > On 2016-09-28 01:04, Marc Muehlfeld via samba wrote: > > > > Hi, > > > > Am 27.09.2016 um 21:14 schrieb Elias Pereira via samba: > > > > Maybe, it would be nice to put on the wiki that step regarding > > uninstall the old packages version. I believe that a good portion > > of users unaware that step. :) > > I only can add a general and installation, because distros have > > different package managers and you can run into dependencies > > problems. For example, when you uninstall Samba, cifs-utils is also > > automatically removed - even if you don't want to compile this > > yourself. > > > > I will see if I find a place where this general information fits > > tonight. > > > > Regards, > > Marc > > Out of curiosity I ran "apt remove samba" on Ubuntu 16.04.1LTS and > removal adds "winbind" packages "will be REMOVED" even though I don't > want to remove winbind. So, " . . . because distros have different > package managers and you can run into dependencies problems." yes, I > understand you reluctance to adding "uninstall" instructions in the > wiki. IMHO, this is actually a distro related issue. > > Marc, you probably already know this but, I just thought everyone > should be aware. I have also seen different types of distro related > issues, like this, in CentOS and Fedora experiments where package > manager is going to un-install and/or install some package due to > dependency requirements. > > Bob, if you removing Samba to compile your own version, then it > doesn't matter that winbind is also removed, compiling Samba also > provides winbind. > > Rowland > > Thanks. I was just accelerated my searching to find the "that" answer. >Bob, if you run ./configure --help in the base of an unpacked Samba tarball, you will get a list of options that can be passed to the compile, amongst these are the places to put various parts of Samba. If you do not set any of these, Samba will be installed to /usr/local/samba and when I say Samba, I mean all of Samba, the binaries and libraries etc, you get uptodate versions of ldb, tdb, tevent etc. The problem comes if you are trying to upgrade from a distro package, these scatter Samba in several places and you will need to find a way to move thing like sam.ldb to the correct place. The easiest way would be to set up another DC joined to the domain and then demote and remove the original DC. Rowland
Bob of Donelson Trophy
2016-Sep-28 12:49 UTC
[Samba] Upgrading samba from source over debian packages
On 2016-09-28 07:13, Rowland Penny via samba wrote:> On Wed, 28 Sep 2016 07:00:17 -0500 > Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: > > On 2016-09-28 06:41, Rowland Penny via samba wrote: > > On Wed, 28 Sep 2016 06:29:00 -0500 > Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: > > On 2016-09-28 01:04, Marc Muehlfeld via samba wrote: > > Hi, > > Am 27.09.2016 um 21:14 schrieb Elias Pereira via samba: > > Maybe, it would be nice to put on the wiki that step regarding > uninstall the old packages version. I believe that a good portion > of users unaware that step. :) > I only can add a general and installation, because distros have > different package managers and you can run into dependencies > problems. For example, when you uninstall Samba, cifs-utils is also > automatically removed - even if you don't want to compile this > yourself. > > I will see if I find a place where this general information fits > tonight. > > Regards, > Marc > Out of curiosity I ran "apt remove samba" on Ubuntu 16.04.1LTS and > removal adds "winbind" packages "will be REMOVED" even though I don't > want to remove winbind. So, " . . . because distros have different > package managers and you can run into dependencies problems." yes, I > understand you reluctance to adding "uninstall" instructions in the > wiki. IMHO, this is actually a distro related issue. > > Marc, you probably already know this but, I just thought everyone > should be aware. I have also seen different types of distro related > issues, like this, in CentOS and Fedora experiments where package > manager is going to un-install and/or install some package due to > dependency requirements. > > Bob, if you removing Samba to compile your own version, then it > doesn't matter that winbind is also removed, compiling Samba also > provides winbind. > > Rowland > > Thanks. I was just accelerated my searching to find the "that" answer.Bob, if you run ./configure --help in the base of an unpacked Samba tarball, you will get a list of options that can be passed to the compile, amongst these are the places to put various parts of Samba. If you do not set any of these, Samba will be installed to /usr/local/samba and when I say Samba, I mean all of Samba, the binaries and libraries etc, you get uptodate versions of ldb, tdb, tevent etc. The problem comes if you are trying to upgrade from a distro package, these scatter Samba in several places and you will need to find a way to move thing like sam.ldb to the correct place. The easiest way would be to set up another DC joined to the domain and then demote and remove the original DC. Rowland I agree. I don't like the complications of installing from source over a distro package management install. My goal is as you suggested . . . setup another DC and join, then demote and remove. My issue has been setting up bind9. I want to use Ubuntu (too many reasons why . . just want Ubuntu) 16.04LTS. I know how and want to install samba from source. I have done this on VM's and know what setting to adjust to make Samba work using internal bind but, I want bind9. So, simply put, I want to learn how to setup Ubuntu 16.04LTS with a functional bind9 install and then install samba from source. (And then provision with "BIND9_DLZ" option.) -- _______________________________ Bob Wooden of Donelson Trophy
Steve Ankeny
2016-Sep-28 13:11 UTC
[Samba] Upgrading samba from source over debian packages
On 09/28/2016 08:13 AM, Rowland Penny via samba wrote:> On Wed, 28 Sep 2016 07:00:17 -0500 > Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: > >> On 2016-09-28 06:41, Rowland Penny via samba wrote: >> >>> On Wed, 28 Sep 2016 06:29:00 -0500 >>> Bob of Donelson Trophy via samba <samba at lists.samba.org> wrote: >>> >>> On 2016-09-28 01:04, Marc Muehlfeld via samba wrote: >>> >>> Hi, >>> >>> Am 27.09.2016 um 21:14 schrieb Elias Pereira via samba: >>> >>> Maybe, it would be nice to put on the wiki that step regarding >>> uninstall the old packages version. I believe that a good portion >>> of users unaware that step. :) >>> I only can add a general and installation, because distros have >>> different package managers and you can run into dependencies >>> problems. For example, when you uninstall Samba, cifs-utils is also >>> automatically removed - even if you don't want to compile this >>> yourself. >>> >>> I will see if I find a place where this general information fits >>> tonight. >>> >>> Regards, >>> Marc >> Out of curiosity I ran "apt remove samba" on Ubuntu 16.04.1LTS and >> removal adds "winbind" packages "will be REMOVED" even though I don't >> want to remove winbind. So, " . . . because distros have different >> package managers and you can run into dependencies problems." yes, I >> understand you reluctance to adding "uninstall" instructions in the >> wiki. IMHO, this is actually a distro related issue. >> >> Marc, you probably already know this but, I just thought everyone >> should be aware. I have also seen different types of distro related >> issues, like this, in CentOS and Fedora experiments where package >> manager is going to un-install and/or install some package due to >> dependency requirements. >> >> Bob, if you removing Samba to compile your own version, then it >> doesn't matter that winbind is also removed, compiling Samba also >> provides winbind. >> >> Rowland >> >> Thanks. I was just accelerated my searching to find the "that" answer. >> > Bob, if you run ./configure --help in the base of an unpacked Samba > tarball, you will get a list of options that can be passed to the > compile, amongst these are the places to put various parts of Samba. If > you do not set any of these, Samba will be installed > to /usr/local/samba and when I say Samba, I mean all of Samba, the > binaries and libraries etc, you get uptodate versions of ldb, tdb, > tevent etc. > > The problem comes if you are trying to upgrade from a > distro package, these scatter Samba in several places and you will need > to find a way to move thing like sam.ldb to the correct place. > The easiest way would be to set up another DC joined to the domain and > then demote and remove the original DC. > > Rowland >And, if I'm understanding you correctly, I could have Samba AD 4.3.8 installed from the Ubuntu repository, build Samba 4.5.1 from source on a second server, let it replicate as a second AD DC, then demote the original? That's a neat way to move from an older version to a new!