update mongodb ubuntu 18.04 code example
Example 1: how to update mongodb in ubuntu 18.04
sudo apt updatesudo apt install mongodb-org
Example 2: how to update mongodb in ubuntu 18.04
sudo add-apt-repository 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse'