I used the following to remove all mongodb packages so I can start fresh, but it does not seem to be working. How can I totally remove mongodb?
I did:
sudo apt-get autoremove mongodb-*
sudo apt-get purge mongodb mongodb-clients mongodb-server mongodb-dev
None of all that works. When I do mongod --version
I still get:
db version v2.6.10
2017-10-01T00:20:56.172-0400 git version: nogitversion
2017-10-01T00:20:56.172-0400 OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
When I run dpkg -S $(which mongod)
I get the following:
mongodb-server: /usr/bin/mongod
The same for mongo
.
sudo apt-get purge mongodb*
should work if and only ifmongodb
was installed with apt. Was it?