How to uninstall mysql on redhat linux version 5

24

Solution 1

Any reason not to use Yum?

yum erase mysql will resolve the dependencies and show you every thing it would need to remove.

Solution 2

You can tell RPM to ignore dependencies and just rip stuff out with the --nodeps flag. I've had to do it in some cases, but make sure you reeeally understand what's depending on those packages.

Another neat trick is to run rpm -qa|grep <thing you want to uninstall>|xargs rpm -e, that will remove all of the packages with "thing you want to uninstall" in the name. I;ve found a lot of times this helps alleviate dependencies if they're all related to the same install.

Solution 3

Try with:

yum remove mysql mysql-server

Solution 4

If you really wanted to remove an rpm without checking dependencies you can always use the --nodeps flag like so:

rpm -e mysql-5.0.77-4.el5_6.6 --nodeps

Share:
24

Related videos on Youtube

Reemor
Author by

Reemor

Updated on September 18, 2022

Comments

  • Reemor
    Reemor over 1 year

    Every time I run this script:

    document.getElementById("billTable").appendChild(nextRow)
    document.getElementById("billTable").appendChild(LISTname);
    document.getElementById("billTable").appendChild(LISTprice);
    document.getElementById("billTable").appendChild(LISTremove);
    

    It creates:

    <tr></tr><td>L - Meat Lovers Pizza</td><td>$6.70</td><td>X</td>
    

    I am trying to make it so the TD tags are with in the TR.

    • zer00ne
      zer00ne about 7 years
      I assume billTable is the <table>, if so, you are targeting the wrong elkement, you must target the <tr>
    • jmoerdyk
      jmoerdyk about 7 years
      You need to append the td elements to tr not the table
  • Avi Gurfinkel
    Avi Gurfinkel over 11 years
    Nice command! I appreciate it.. It looks like its all pointing back to sendmail.. this is strictly going to be a db server but just wanted to start with a fresh install.
  • Univ426
    Univ426 over 11 years
    No prob, just an fyi, if you still need it, --nodeps, or sometimes also, the --allmatches flag, they go at the end of that last command after -e - jus tin case people who find this don't already know.
  • Avi Gurfinkel
    Avi Gurfinkel over 11 years
    Well that did work quite cleanly!