How do I uninstall MariaDB on Ubuntu 14.04 (Trusty Tahr)?

80,376

Solution 1

The easy way for this is installing the synaptic package manager by typing the following command in the terminal:

sudo apt-get install synaptic

And then open synaptic by:

sudo synaptic

Then search for the package you have installed, mariadb, and mark it for complete removal and press apply.

Solution 2

There are a few other options which might be of use:

sudo apt-get remove mariadb-server

This will remove just the mariadb-server package itself.

sudo apt-get remove --auto-remove mariadb-server

This will remove the mariadb-server package and any other dependant packages which are no longer needed.

If you also want to delete your local/config files for mariadb-server then this will work.

sudo apt-get purge --auto-remove mariadb-server

but be careful with that last one. See the disclaimer at the installion site

Share:
80,376

Related videos on Youtube

Mojtaba Hosseinzadeh
Author by

Mojtaba Hosseinzadeh

Updated on September 18, 2022

Comments

  • Mojtaba Hosseinzadeh
    Mojtaba Hosseinzadeh almost 2 years

    I have installed MariaDB from source and now I need to uninstall it. I used these commands to install it:

    wget http://mirrors.hustunique.com/mariadb/mariadb-10.0.14/source/mariadb-10.0.14.tar.gz
    tar -zxvf mariadb-10.0.14.tar.gz
    cd mariadb-10.0.14/
    apt-get install cmake
    apt-get install g++ openssl libssl-dev libncurses5-dev libboost-dev bison
    cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
      -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_SSL=system
    make && make install
    

    How do I uninstall it?

  • Mojtaba Hosseinzadeh
    Mojtaba Hosseinzadeh about 9 years
    I'm search package mariadb in synaptic but any related package seen?
  • David Foerster
    David Foerster over 8 years
    -1 Package managers like Synaptic can do nothing about software installed with make install.
  • Admin
    Admin over 8 years
    -1 because package manager doesn't handle packages that were installed from the source (as question had specified and similar to other downvoted answers).
  • user889030
    user889030 over 8 years
    @clearimura i removed mariadb like that 10 times ! try it before down voting .. it done it on my vps 10 times ... i installed multiple times mariadb from source