0

I cloned samba from git to samba-master with

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

and did

git pull

It downloaded from git and I figured I would only get the latest stable version of Samba. I was on 4.0.6 and wanted 4.0.9.

I only want stable versions of Samba, but by mistake I installed Samba 4.2.0pre and now I want to remove it.

How do I do that?

//edit

I first cloned it from git.samba.org into samba-master with the command:

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

I then did cd samba-master from / and started:

./configure --enable-debug --enable-selftest  
make  
make install

The install directory is

/usr/local/samba

I have put the install directory in /etc/environment

2
  • Did you try these command in terminal : sudo apt-get autoremove samba4* and sudo apt-get --purge remove samba4* Reply.. Sep 6, 2013 at 9:46
  • 3
    Largely depends on how you installed it. Can you tell us what you did (before you start apt-get removing things on people's advice)? Please edit your questions to include the commands you ran.
    – Oli
    Sep 6, 2013 at 9:47

2 Answers 2

4

The samba source compiler might actually have an "uninstall" command as part of the makefile that can remove the software.

Try doing make uninstall or make remove. If the makefile was created sanely then it's likely one of those two commands might actually remove the software compiled by the source through make and make install.

2
  • Per the comment discussion on the other answer, we have determined that make uninstall will remove the samba4.2.0pre software. +1 to samba for creating a nice makefile that can also uninstall the software when you want to get rid of it. :)
    – Thomas Ward
    Sep 7, 2013 at 17:08
  • Note it won't clean up the folders... :/
    – Thomas Ward
    Sep 7, 2013 at 17:59
0

I have learned from ubuntuforums that there is no way to use apt-get remove samba4, or apt-get --purge remove samba4*to uninstall Samba 4.2.0pre installed from git, because it has not been installed from reposistory.

The only way to uninstall Samba 4.2.0pre installed from git is to do rm -rf on the samba folder and to edit all files you edited that referes to Samba 4.2.0pre in the beginning.

9
  • There are other methods for removing, however, to work, it's dependent on how it was installed. This answer you've provided does not provide a complete answer, because sane programs might also include a make uninstall or make remove script.
    – Thomas Ward
    Sep 6, 2013 at 21:33
  • What you say makes sense, I aggree with you. But this is what I learned from the forum. Every sensible programmer always provides an oppertunity to remove their software.
    – JnPson
    Sep 6, 2013 at 21:52
  • Without more information from what you did, we can't really identify whether or not make remove or make uninstall exists. Did you try running make uninstall or make remove?
    – Thomas Ward
    Sep 6, 2013 at 22:35
  • No, I didn't even know I could do that.
    – JnPson
    Sep 6, 2013 at 22:40
  • 1
    @Thomas W The commands make uninstall absolutly works. I just finished uninstalling Samba4.2.0pre with this command.
    – JnPson
    Sep 7, 2013 at 12:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .