Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
uninstall mysql in linux redhat

uninstall mysql in linux redhat

2005-06-19       - By Michael Kearey

 Back
Reply:     1     2     3  

On Sun, 2005-06-19 at 11:48 +0000, H.A.G. wrote:
> Now I found one package using this command:
> # rpm -qa | grep -i mysql
> output: MySQL-server-standard-5.0.7-0.rhel3.i386.rpm
>
> When I tried to remove this package it gave error:
> # rpm -ivh MySQL-server-standard-5.0.7-0.rhel3
> error occurred in service mysql: file or directory are not
> available
> Error: %preun(MySQL-server-standard-5.0.7-0.rhel3) scriptlet
> failed, exit status 1
>
> And when I tried to install this package again, it gave error:
> output: # rpm -ivh MySQL-server-standard-5.0.7-0.rhel3.i386.rpm
>
> MySQL-server-standard-5.0.7-0.rhel3 is already installed
>
> So I can not remove this package and I can not reinstall it.
>
> Any idea.

Hi there. Who supplied the MySql package you are using, BTW?

On RHEL3 you can do this:

rpm -qa MySQL\*

to do a 'globb' search for packages that begin with MySQL, instead of
the grep.

I assume that you did a typo' and meant to show that you are doing 'rpm
-e'

The failure you see is due to a script that is being run by the rpm
erase command failing, in the %preun section of the RPM's spec file.

I suggest that you investigate what the preun scripts are that are being
run. You can view them using :

rpm -q --scripts MySQL-server-standard

It may give you a clue as to why it is failing. If you find that the
preun script is not particularly important, you can do the erase with an
option --nopreun  ie:

rpm -e --nopreun MySQL-server-standard

This does the RPM package erase without running the preun scriptlet.

More information is in the manual page of RPM  :

man rpm

Cheers,
Michael




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.