Linux uninstall iis2.6 and linux5112.6

Source: Internet
Author: User

Linux uninstall iis2.6 and linux5112.6

Requirement: linux uninstall ipv2.6

Version: linux: Ubuntu 16.04

Mongo: mongo 2.6.12

1. View installed mongo versions and services

# Dpkg-l | grep mongo

We can see that there are currently three associated with mongodb, mongodb, mongodb-clients, and mongodb-server.

 

2. Uninstall mongodb

# Sudo apt-get remove mongodb

(Skip this step if you do not have this prompt.) follow the prompt to correct the error and enter the following command:

# Sudo apt-get-f install

Then run the uninstall command again.

# Sudo apt-get remove mongodb

Clear dependency

# Sudo apt autoremove

Clear configuration data

# Sudo apt-get remove-auto-remove mongodb

View installed mongo versions and services

# Dpkg-l | grep mongo

Mongodb has been uninstalled.

3. Uninstall mongodb-clients and mongodb-server

# Sudo apt-get remove mongodb-clients

As you can see, the mongodb-clients and mongodb-server are uninstalled together.

 

Clear dependency

# Sudo apt autoremove

Clear configuration data

# Sudo apt-get purge mongodb-clients

Check whether the mongodb-server has been uninstalled together.

# Sudo apt-get remove mongodb-server

Finally, only the configuration is left, and the configuration is basically deleted. The stubborn mongodb-server is left behind. I can't do anything about it. Let it go.

If you have a good way to cure it, please leave a valuable comment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.