Installing MongoDB 2.0 on Ubuntu 10.04 LTS

10Gen publishes apt-gettable packages for MongoDB that are more up-to-date than those in Debian or Ubuntu.

The details about getting and installing 10gen’s packages are here.

Following those instructions, here’s how I installed MongoDB on my Ubuntu 10.04 LTS system:

# add the mongodb repository to /etc/apt/sources.list
sudo bash -c "echo 'deb dist 10gen' >> /etc/apt/sources.list"

# add 10gen's GPG key so that aptitude will trust the repository
sudo apt-key adv --keyserver --recv 7F0CEB10

# Update aptitude's list of available packages
sudo apt-get update

# Install mongodb
sudo apt-get install mongodb-10gen

Comments are closed.