[Samba] Re: Upgrade samba from 3.28 to 3.29 to fix winbind issue.
John
jknappers-argentia at hotmail.com
Wed Feb 11 08:03:58 GMT 2009
"Toby Bluhm" <tkb at alltechmedusa.com> schreef in bericht
news:4991D6AF.40706 at alltechmedusa.com...
> Turner, Justin H Contractor wrote:
>> How do you upgrade samba from 3.0.28 to 3.0.29 to fix winbind issue? My
>> OS is CentOS 4.5. I haven't been able to find a RPM above 3.0.28. for
>
> samba built from src will put stuff in places different from where an rpm
> package will put them - probably why it didn't work as an upgrade to a
> working RH type server for you.
>
> I needed 3.0.33 to fix a SolidWorks problem, so I did the following for
> WhiteboxLinux 4. I expect if it's changed where needed, should work for
> Centos 4.
>
> rpm -ihv samba-3.0.25b-1.el4_6.4.src.rpm
>
> Put samba-3.0.33.tar.gz in /usr/src/whitebox/SOURCES/
> Remove the old /usr/src/whitebox/SOURCES/samba-3.0.25b.tar.gz
> Remove the /usr/src/whitebox/SOURCES/*.patch files
> Edit /usr/src/whitebox/SPECS/samba.spec:
>
> old: Version: 3.0.25b
> old: Release: 1%{dist}.4
>
> new: Version: 3.0.33
> new: Release: 1.4
>
> remove: all lines with "Patch"
> remove: all lines with "%patch"
> remove: "--with-mmap \"
> remove: "--without-smbwrapper \"
> remove: "%doc docs/REVISION docs/Samba3-ByExample.pdf
> docs/Samba3-Developers-Guide.pdf"
>
> rpmbuild -bb /usr/src/whitebox/SPECS/samba.spec
> rpm -Uhv /usr/src/whitebox/RPMS/i386/samba*3.0.33-1.4.i386.rpm
> service smb stop
> service smb start
>
> I found the /usr/src/whitebox/BUILD/samba-3.0.33/packaging/RHEL/samba.spec
> file from the 3.0.33 tarball later on, but since my way was already
> working for me, I didn't bother trying it out.
>
>
> As always, YMMV.
>
>
> --
> tkb
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
Hi ,
Making ./configure, make and make install is not the way to upgrade packages
on a RPM based system. It probably won't behave as expected.
The way Toby described is one way to do it. There 2 other possibilities.
EL5.3 ships with Samba 3.0.33, so one can try to rebuild the src.rpm on
EL4. (Download the src.rpm from ftp://ftp.redhat.com because, CentOS 5.3 is
not ready yet). Probably some tweaking of the dependencies is necessary.
I have done this often with packages like squid and postfix. (src rpm taken
from latest FC), and this worked well for me.
Easiest way, if you don't want to backport / rebuild your self is the use of
the Sernet packages. Sernet offers Samba latest released Samba packages for
SuSE / EL / CentOS and Debian. One note here. Sernet use a different package
setup is EL does. The EL / CentOS rpms have a "SuSE" layout..
So before installing them, de-install all EL/CentOS based samba packages..
Success,
John
More information about the samba
mailing list