LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2005, 01:07 AM   #1
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Rep: Reputation: 15
How to uninstall without RPM?


I am about to upgrade from Samba 2.2.7 to 3.0.20 on RH7.3 (yes I know RH7.3 is very much out of date but this is to fix a bug until I can rebuild the server with a current Linux distro)

I have compiled Samba 3.0.20 on a test machine running RH7.3 and it appeared to install without a hitch.

Now I have a little linux knowledge but I only really play with it when I have to, luckily Linux runs pretty much trouble free so I havent had to play with it too much!

To install the new version of Samba I need to uninstall the old version first - the old version wasnt installed using rpm so rpm -e will not work.

So how do I manually uninstall the old version? This I have not done before.
 
Old 09-20-2005, 02:36 AM   #2
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
Take ur chance and install everything... from RPM, most probably the 3.0.20 will not get installed on 7.3, because the kerberos, ldap libraries required are recent ones. So you can try but I am sure you will have problems there.

What I can advise is... try to download the lates..
1) GCC
2) openldap
2) Berkley DB
3) Samba Source Code
(maybe some more, like openssh, Cyrus SASL, binutils, many more infact)
Build them and install, even this would be quite problematic but achievable. By RPM it would be be very harrowing dependecy issues..

regards
 
Old 09-20-2005, 03:11 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
samba can be kind of tricky because of all it's parts (stop it first)
if you know how you did it originally and you have original build dir you can rerun make install and follow the output and any other commands you used to find all it's parts

basically you got a bunch of /bin stuff that starts with smb
do
which smbclient
and the two main deamons themselves that are most likely in a root only place like
/usr/sbin
as root do
which smbd
swat will be there as well

you have libs in /usr/lib/samba and other junk so revove that whole think libsambaclient might have been moved somewhere like /usr/lib and there is a link in
/usr/lib/samba

and one header file /usr/include/libsmbclient.h

and some security libs
libnss_win{s,bind}.so
pam_winbind.so

i think like the cache and log directories and stuff should be ok to reuse
just use the same prefix variables you used the last time
 
Old 09-20-2005, 07:41 PM   #4
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the replies guys.

I have already compiled the 3.0.20 source code on a RH7.3 test machine and it appeared to compile and install ok?

The problem is I didnt originally install samba on this production machine, so I have no idea how it was installed.

Can I try 'make uninstall', I believe to do this I need the original makefile? Which I havent been able to find, I think the last admin cleaned up pretty well after himself

What is likely to happen if I dont manage to get rid of all the files from the current Samba install, is likely to cause any problems for the new install or will just clutter up the system a little?
 
Old 09-21-2005, 02:14 AM   #5
Dayanandabv
LQ Newbie
 
Registered: Aug 2005
Location: India
Posts: 16

Rep: Reputation: 0
hello,
from startup menu go to system settings>add/remove application
and now go system tools click details and uncheck the samba and
update it

hope it helps
daya
 
Old 09-21-2005, 06:43 PM   #6
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
It doesnt look like the Add/Remove Application applet was installed, I cant find it?
 
Old 09-21-2005, 06:51 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"The problem is I didnt originally install samba on this production machine, so I have no idea how it was installed."

You can check to see if it was installed using rpm with this command:

rpm -qa | sort | less

That will give you a list of every package that was installed using rpm. Then you can check an individual package's version number, install date, etc. with:

rpm -qi samba

-----------------------------
Steve Stites
 
Old 09-21-2005, 06:54 PM   #8
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Yeah I have tried rpm -qa and it returned no results for samba so I assume it was not installed using rpm, hence I'm trying to find out how to uninstall without rpm?
 
Old 09-21-2005, 11:31 PM   #9
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
If you have already built 3.0.20 successfully its good please post a howto here, because I want able to do it in RH8 funny!

anyway, Now that you want to uninstall the older samba which is installed without RPM check this out...
just check with
#>whereis smbd
Now that you know where it is delete it
similarly you do
#>whereis nmbd
and delete it
and for smbclient, smbstatus and all others do the same thing...
if they are in /usr/sbin then you can avoid deleating it, and better re-build 3.0.20 with the following options...

./configure --prefix=/usr --sysconfdir-/etc ....

and do a make install
I think you should get the latest samba in your paths..

regards
 
Old 09-22-2005, 11:50 PM   #10
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by saneax
If you have already built 3.0.20 successfully its good please post a howto here, because I want able to do it in RH8 funny!
Well, being a newbie I did not know what to expect and it went very smoothly so I hope I got it right! This is what I did so let me know if if any of this is wrong:

Firstly I untarred the source package into a /root/tmp directory

# tar tvf samba-3.0.20.tar.gz

I then ran configure in that directory. It ran for a long while but didnt come up with any errors (a couple of warnings but it carried on).

I than ran 'make', it completed ok then 'make install'. It appeared to install ok and I could then start and stop the smbd and nmbd daemons without a problem. I could not test the network connectivity using the samba install because I do not have a client server arrangement set-up for this test machine. So I just put a very basic smb.conf file in and tested if the server would start and stop. I figure from here the install should be ok and it will just be config settings that will be causing any problems?

Thanks for the uninstall info, I will be coming in this weekend to have a go (after I have imaged the drive so I have a full backup to recover from in the event I wreck something!)
 
Old 09-23-2005, 12:06 AM   #11
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by junpax
need help about CNET internal modem that didn't work in fedora core 2...
I assume you meant to start a new thread? This is an existing thread on a different subject.

Go here: http://www.linuxquestions.org/questi...p?s=&forumid=8

...and then click on the new thread button
 
Old 09-26-2005, 02:51 AM   #12
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
OK~!

I compiled and installed Samba 3.0.20 on RH7.3

After reading the "How To Compile Samba" section of the online Samba guide, I decided not to uninstall the old version as apparently the new install will simply rename the old binaries with ".old" extension so its as easy as typing [root# make revert] to revert back to the old installation.

I stopped the smbd and nmbd daemons and then did make install with the newly compiled 3.0.20 source. It installed fine, no errors. I rebooted (Windows habit!), held my breath as I saw smb and nmb start with a big green OK

The first thing I did was try and connect to SWAT from a client PC and see what happened. Well I noticed the interface for SWAT was slightly different so something upgraded, but when I go to the status page, it still reads as version 2.2.7a?

I havent had time to fully investigate but so far it appears to be working fine. But why does it show as 2.2.7a, did the install not work properly because I didnt uninstall the old files or is it just displaying incorrectly through SWAT?
 
Old 10-06-2005, 03:20 AM   #13
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
I hear that if you install from source, the following command
Code:
make uninstall
issued from the source tree of course, may possibly clean out an old version.

I also hear it depends on the Makefile for that particular source, some of them probably don't have that built in, but Samba is a pretty huge and famous app, like..., I mean it's got to allow it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstall RPM manojg Linux - Newbie 3 10-09-2007 11:53 AM
how to uninstall an rpm???? caleb star Fedora 1 09-04-2004 01:03 PM
uninstall rpm sjefke37 Linux - Newbie 3 05-04-2004 05:15 PM
How do you uninstall a rpm? fzx1 Linux - Newbie 12 04-09-2004 03:05 PM
rpm uninstall mikemrh9 Linux - Newbie 1 11-26-2003 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration