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:

<br />
# add the mongodb repository to /etc/apt/sources.list<br />
sudo bash -c &quot;echo 'deb dist 10gen' &gt;&gt; /etc/apt/sources.list&quot;</p>
<p># add 10gen's GPG key so that aptitude will trust the repository<br />
sudo apt-key adv --keyserver --recv 7F0CEB10</p>
<p># Update aptitude's list of available packages<br />
sudo apt-get update</p>
<p># Install mongodb<br />
sudo apt-get install mongodb-10gen<br />

Comments are closed.