Install MongoDB in Ubuntu 12.04 Precise Pangolin

Here are shortcuts to install and run MongoDB in your Ubuntu 12.04 Precise Pangolin.

1. Add GPG Key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

2. Edit your source.list
sudo vim /etc/apt/sources.list and add this into bottom line :

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

3. Update and install

sudo apt-get update && sudo apt-get install mongodb-10gen
Subscribe to RSS - install mongodb