top of page

MariaDB can be uninstalled by disabling the module or using the repository; both examples are in this guide.

Oct 13, 2024

1 min read

0

25

0

MariaDB can be uninstalled by disabling the module or using the repository; both examples are in this guide.

 

Uninstalling MariaDB 10.11 on Red Hat Modular

  1. Stop the MariaDB Service:

    • Ensure MariaDB is not running:

  2. sudo systemctl stop mariadb

  3. Disable MariaDB from Starting on Boot:

    • Prevent MariaDB from starting automatically:

  4. sudo systemctl disable mariadb

  5. Remove MariaDB Packages:

    • Uninstall MariaDB server and client:

  6. sudo dnf module reset mariadb

  7. sudo dnf module disable mariadb

  8. sudo dnf remove mariadb-server mariadb-client

  9. Remove MariaDB Repository:

    • Delete the repository file:

  10. sudo rm /etc/yum.repos.d/MariaDB.repo

  11. Remove MariaDB Data Directory:

    • Delete the data directory if you no longer need the data:

  12. sudo rm -rf /var/lib/mysql

  13. Clean Up Unused Dependencies:

    • Remove any dependencies that are no longer needed:

  14. sudo dnf autoremove

This process ensures that MariaDB 10.11 is entirely uninstalled from your Red Hat system.

##############################################################


or method two

 

Uninstalling MariaDB 10.11 on Red Hat

  1. Stop the MariaDB Service:

    • Ensure MariaDB is not running:

  2. sudo systemctl stop mariadb

  3. Disable MariaDB from Starting on Boot:

    • Prevent MariaDB from starting automatically:

  4. sudo systemctl disable mariadb

  5. Remove MariaDB Packages:

    • Uninstall MariaDB server and client:

  6. sudo dnf remove MariaDB-server MariaDB-client

  7. Remove MariaDB Repository:

    • Delete the repository file:

  8. sudo rm /etc/yum.repos.d/MariaDB.repo

  9. Remove MariaDB Data Directory:

    • Delete the data directory if you no longer need the data:

  10. sudo rm -rf /var/lib/mysql

  11. Clean Up Unused Dependencies:

    • Remove any dependencies that are no longer needed:

  12. sudo dnf autoremove

This process ensures that MariaDB 10.11 is entirely uninstalled from your Red Hat system.

 

Oct 13, 2024

1 min read

0

25

0

Related Posts

Comments

Share Your ThoughtsBe the first to write a comment.
bottom of page