Blog 2012 08 29 Install Latest MongoDB in Ubuntu

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

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

This post is licensed under CC BY 4.0 by the author.