By Chris Cuilla
Since I’ve installed MongoDB per this procedure: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx
Which did:
apt-get install mongodb-server
I’m curious about the proper upgrade procedure.
MongoDB.org says this:
apt-get install mongodb-org
Should the old be removed and the new installed or will “apt-get install mongodb-org” handle all of that?
NOTE: I’ve even tried apt-get upgrade mongo-server which tells me I’m at the latest version (2.4.9). Is it possible I need to add a new/different apt-get package repository for mongo 2.6?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The instructions in that tutorial will install MongoDB from the regular Ubuntu repository. In order to provide a stable environment, Ubuntu and other distros release with a specific versions of software. Often they will provide backported security patches and bugfixes, but they will not ship new major releases.
You can install a more recent version of MongoDB using upstream’s repository:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-org
Installing the mongodb-org packages will automatically remove the Ubuntu mongodb-server ones.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.