How to Update MongoDB Version in Mac

How to Update MongoDB Version in Mac

In today’s post, we’ll learn how to update the MongoDB version on a MacBook.

Update MongoDB Version in Mac

Before diving into the solution, we will first try to understand what the Brew is, mongodb-community and why it is needed.

Thanks to Homebrew package management, applications and utilities are simple to install and update on a Mac. As the package manager for macOS, Homebrew fills the hole.

Anyone familiar with the command line will find it exceedingly easy and simple.

Modern apps frequently use the free, open-source MongoDB Community Edition database as their database of choice. It is a distributed document-based database that makes use of cloud computing.

Even though this may be the most affordable option to get started with MongoDB, it provides a variety of remarkable advantages and capabilities.

  1. Update the brew - Make sure you have the latest version of the brew installed by running:

    brew update
    
  2. Upgrade the MongoDB community - On your laptop, open the terminal and run the following command.

    brew upgrade mongodb-community
    
  3. Check your MongoDB version

    mongo --version
    

This will install MongoDB with the latest version.

Enjoying our tutorials? Subscribe to DelftStack on YouTube to support us in creating more high-quality video guides. Subscribe
Shraddha Paghdar avatar Shraddha Paghdar avatar

Shraddha is a JavaScript nerd that utilises it for everything from experimenting to assisting individuals and businesses with day-to-day operations and business growth. She is a writer, chef, and computer programmer. As a senior MEAN/MERN stack developer and project manager with more than 4 years of experience in this sector, she now handles multiple projects. She has been producing technical writing for at least a year and a half. She enjoys coming up with fresh, innovative ideas.

LinkedIn

Related Article - MongoDB Version