How To Install mongodb-clients on Ubuntu 20.04
Introduction
In this tutorial we learn how to install mongodb-clients
on Ubuntu 20.04.
What is mongodb-clients
mongodb-clients is:
MongoDB is a high-performance, open source, schema-free document-oriented data store that’s easy to deploy, manage and use. It’s network accessible, written in C++ and offers the following features:
* Collection oriented storage - easy storage of object-style data
* Full index support, including on inner objects
* Query profiling
* Replication and fail-over support
* Efficient storage of binary data including large objects (e.g. videos)
* Auto-sharding for cloud-level scalability
High performance, scalability, and reasonable depth of functionality are the goals for the project.
This package contains the standard administrative shell (mongo) and other utilities for administration or analysis of performance of the server.
There are three methods to install mongodb-clients
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install mongodb-clients Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mongodb-clients
using apt-get
by running the following command:
sudo apt-get -y install mongodb-clients
Install mongodb-clients Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mongodb-clients
using apt
by running the following command:
sudo apt -y install mongodb-clients
Install mongodb-clients Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install mongodb-clients
using aptitude
by running the following command:
sudo aptitude -y install mongodb-clients
How To Uninstall mongodb-clients on Ubuntu 20.04
To uninstall only the mongodb-clients
package we can use the following command:
sudo apt-get remove mongodb-clients
Uninstall mongodb-clients And Its Dependencies
To uninstall mongodb-clients
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove mongodb-clients
Remove mongodb-clients Configurations and Data
To remove mongodb-clients
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge mongodb-clients
Remove mongodb-clients configuration, data, and all of its dependencies
We can use the following command to remove mongodb-clients
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mongodb-clients
References
Summary
In this tutorial we learn how to install mongodb-clients
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.