In this short article we will learn how to install MongoDB Compass on Ubuntu 22.04 Linux operating system. MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. At the time of writing this tutorial, the stable version of MongoDB compass is version 1.34.2 and we will be using that version for our current tutorial.
Installing MongoDB Compass On Ubuntu 22.04
Software Requirements
In order for MongoDB Compass to run smoothly, the following software requirements are needed:
- 64-bit version of Ubuntu 14.04 or later.
- MongoDB 3.6 or later.
The Compass installation steps are as follow :
The explanation of the installation process will be discussed in several sub-chapters below.
1. Download MongoDB Compass
In this tutorial, we will install the latest version of MongoDB Compass, version 1.34.2. We will download the source file from MongoDB Compass official web page.
$ wget https://downloads.mongodb.com/compass/mongodb-compass_1.34.2_amd64.deb
Output :
ramans@infodiginet:~$ wget https://downloads.mongodb.com/compass/mongodb-compass_1.34.2_amd64.deb --2022-12-20 22:29:09-- https://downloads.mongodb.com/compass/mongodb-compass_1.34.2_amd64.deb Resolving downloads.mongodb.com (downloads.mongodb.com)... 18.64.37.32, 18.64.37.106, 18.64.37.14, ... Connecting to downloads.mongodb.com (downloads.mongodb.com)|18.64.37.32|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 90079466 (86M) [application/octet-stream] Saving to: ‘mongodb-compass_1.34.2_amd64.deb’ mongodb-compass_1.34.2_amd 100%[=======================================>] 85,91M 600KB/s in 67s 2022-12-20 22:30:17 (1,29 MB/s) - ‘mongodb-compass_1.34.2_amd64.deb’ saved [90079466/90079466]
2. Install MongoDB Compass
After download is completed, then we will install the application based on this deb file by submitting command line :
$ sudo dpkg -i mongodb-compass_1.34.2_amd64.deb
Output :
ramans@infodiginet:~$ sudo dpkg -i mongodb-compass_1.34.2_amd64.deb Selecting previously unselected package mongodb-compass. (Reading database ... 270800 files and directories currently installed.) Preparing to unpack mongodb-compass_1.34.2_amd64.deb ... Unpacking mongodb-compass (1.34.2) ...
3. Start MongoDB Compass
After Compass installation is completed done, then we will start the application. We have two option to start MongoDB Compass, namely :
- Using console by texting :
$ mongodb-compass
. - Using Ubuntu GUI by clicking MongoDB Compass icon.
- MongoDB Compass for the first time running :

- Compass After Connecting to local database.

At this point, the Compass installation process has been completed successfully. For future articles we will discuss how to create databases, create tables in MongoDB.
Conclusion
In this short tutorial, we have learned how to install MongoDB Compass on Ubuntu 22.04 Linux operating system successfully.