Ubuntu – How to remove Samba4.2.0pre which was compiled from source

uninstall

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

Best Answer

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.