LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-27-2006, 01:37 AM   #1
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
mysql - uninstall completely


Good Morning!

I installed mysql-server using yum, and now I want to uninstall it. Completely. I've had a good look around, but like most things nix, the simple straightforward thing either isn't written down or doesn't work.

How do I completely remove/uninstall/zap/disintegrate/divorce/lance mysql-server?

I've tried

rpm -e mysql-server.x86_64
and
yum remove mysql-server.x86_64

but it's still there - I can still log on. My next move would be to remove the directories
/var/lib/mysql
/var/lib/mysql/mysql
/usr/share/mysql
/usr/bin/mysql
/usr/lib/mysql
/usr/include/mysql

but if there is an easier way then I'd really appreciate it being shared with me.

Thanks.
 
Old 12-27-2006, 01:58 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
What error do you get when you try to remove the mysql packages? The period in the package names doesn't look right. Try "rpm -qa | grep mysql" to find the real names of all the mysql packages. The name to use is prior to the version number.
 
Old 12-27-2006, 11:58 AM   #3
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I get this from the grep:

mysql-4.1.20-1.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1

so if I run
sudo rpm -e mysql-4.1.20-1.RHEL4.1

that should remove it?
 
Old 12-27-2006, 11:59 AM   #4
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
ok, I just tried it anyway and got this

error: "mysql-4.1.20-1.RHEL4.1" specifies multiple packages

do you know how I'd deal with that?
 
Old 12-27-2006, 05:13 PM   #5
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
this helped me see the differences in the files. Thanks for the help, it is much appreciated.

rpm -qa --queryformat "%{NAME}-%{VERSION}-%{ARCH} \\n" | grep mysql | sort
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do I get apt-get to completely uninstall a package? muxman Debian 22 07-01-2014 05:43 PM
How do I COMPLETELY uninstall Automatix2 brocki1 Linux - Desktop 0 12-22-2006 03:04 PM
how to completely uninstall a program royeo Linux - Newbie 1 09-20-2006 09:19 PM
how do I completely uninstall IE ddaas General 17 01-20-2005 06:21 PM
How do i COMPLETELY uninstall Linux and GRUB? Lambas Linux - Newbie 10 11-09-2004 07:37 AM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration