Install Latest MongoDB in Ubuntu

A couple projects I work on use MongoDB as the database, and I’m generally not satisfied to use the (often outdated) version that ships with Ubuntu.

As a result, I wrote this script to automate fetching, extracting and linking the latest version.

To configure the script, just replace the PKG information with whatever value is most relevant for your configuration at http://www.mongodb.org/downloads.

Note that this script pulls mongod from a gist which I created. This script is originally from Ijonas Kisselbach’s dotfiles.

Comments