DEV Community

Sifat Faysal
Sifat Faysal

Posted on • Updated on

Install MongoDB Compass GUI in Ubuntu

nstalling MongoDB Compass on Ubuntu is a straightforward process that can be completed in just a few steps.

  1. Download the MongoDB Compass package for Ubuntu from the MongoDB website.

  2. Open the terminal and navigate to the directory where the downloaded package is located.

  3. Install the package by running the following command:

sudo apt install ./mongodb-compass_version_amd64.deb
Enter fullscreen mode Exit fullscreen mode

(change the package name with the one you downloaded )

  1. Once the installation is complete, you can launch MongoDB Compass by running the following command:
mongodb-compass
Enter fullscreen mode Exit fullscreen mode
  1. A window should open with the MongoDB Compass login screen. If this is the first time you are running MongoDB Compass, you will need to create a connection to a running MongoDB instance. You can do this by clicking the "Create" button on the login screen and entering the connection details for your MongoDB instance.

  2. Once you have created a connection, you can explore your MongoDB data and perform various operations, such as creating and modifying collections and documents, running queries, and more.

  3. To run the Compass in background

nohup mongodb-compass &
Enter fullscreen mode Exit fullscreen mode

And that's it! You should now have MongoDB Compass installed and running on your Ubuntu machine.

Oldest comments (2)

Collapse
 
zahidshowrav profile image
Zahid R. Showrav

Thanks. Great article.. It helps me lot :)

Collapse
 
sifatfaysal profile image
Sifat Faysal

You're welcome! I'm glad to hear that the article was helpful for you 😊