Find the answer to your Linux question:
Results 1 to 3 of 3
I'm trying to deinstall MySQL so that I can start over and do a clean install. I have done sudo apt-get remove to delete the packages, but they don't appear ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Location
    Deep in the heart of Texas
    Posts
    40

    Trying to deinstall MySQL in Ubuntu 9.04

    I'm trying to deinstall MySQL so that I can start over and do a clean install.

    I have done sudo apt-get remove to delete the packages, but they don't appear to be completely gone. After doing that, I still seem to have some components left. This is what I see now:

    Code:
    dpkg --get-selections |grep mysql
    
    libmysqlclient16				deinstall
    mysql-client-5.1				deinstall
    mysql-server-5.1				deinstall
    Can someone explain what it means when "deinstall" is displayed, and how I can completely and cleanly get rid of the MySQL components?

  2. #2
    Just Joined!
    Join Date
    May 2009
    Posts
    14
    Quote Originally Posted by mrs1179 View Post
    I'm trying to deinstall MySQL so that I can start over and do a clean install.

    I have done sudo apt-get remove to delete the packages, but they don't appear to be completely gone. After doing that, I still seem to have some components left. This is what I see now:

    Code:
    dpkg --get-selections |grep mysql
    
    libmysqlclient16				deinstall
    mysql-client-5.1				deinstall
    mysql-server-5.1				deinstall
    Can someone explain what it means when "deinstall" is displayed, and how I can completely and cleanly get rid of the MySQL components?
    Just run on terminal:

    Code:
    sudo apt-get install mysql-server

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You can use the purge option to remove the config files too. Either choose the purge option in Synaptic when uninstalling or use
    Code:
    sudo apt-get --purge remove mysql-server
    Of course you'll have to run this with the package installed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...