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.