Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed ubuntu 10.04 LTS, and ran apt-get install couchdb. This installed 0.10.0, however the newest is 0.11.0 and I would like to install that from source.

What's the appropriate way of upgrading the current install to the newest version?

share|improve this question
up vote 5 down vote accepted

Couchdb installs very nicely and fairly easily on Ubuntu 10.04.

  1. Copy your database files somewhere else. They are probably in /var/lib/couchdb.
  2. Copy your /etc/couchdb/local.ini file (if you've changed it at all) somewhere else.
  3. use apt-get to remove the couchdb packages.
  4. make sure that all of files installed by the packages are removed. If you don't do this you may get strange errors later.
  5. then follow the instructions on the Installing on Ubuntu page Eric Edin linked to. You will need to make the adjustments mentioned for 10.04, and the bit about /etc/ toward the bottom.
  6. Copy your database files back into /var/lib/couchdb and put any changes back into the local.ini file and restart couchdb
share|improve this answer
Nice. Also, in my case the couchdb command kept giving error messages like {"init terminating in do_boot",{{badmatch,{error,{bad_return after upgrading. I had to manually kill the process (after backing up the /var/lib/couchdb and /etc/couchdb/local.ini) and restart it (and do – Erfan Jun 1 '15 at 16:39

On the CouchDB wiki there are instructions for building 0.11 from source.

Installing on Ubuntu

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.