Deprecated - Switching from default mongodb to mongodb-10gen

The method here is deprecated and no longer supported

Older FileCloud debian packages had dependency on the default MongoDB packages bundled with Debian and Ubuntu distros (mongodb-server and mongodb-clients). The required mongodb version for FileCloud is not available in these default packages. So it will be necessary to switch to packages from mongodb-10gen repository.  Follow these steps switch from default mongodb packages to 10gen version without uninstalling any other packages.

  1. Add the mongodb-10gen package repository. Edit the file /etc/apt/sources.list and add the code below to the sources.list file and save it.

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

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
  3. Update debian package cache

    sudo apt-get update
  4. Remove dependency of mongodb-server from FileCloud package. Edit the file /var/lib/dpkg/status, search for package filecloudprereq.
    Change the dependency setting by changing the line

    Depends: apache2, php5, php5-gd, php-pear, php5-dev, build-essential, mongodb-server

    to

    Depends: apache2, php5, php5-gd, php-pear, php5-dev, build-essential
  5. Now the dependency of FileCloud debian package on default mongodb packages is removed, uninstall the package.

    # sudo apt-get remove mongodb-server mongodb-clients
  6. Install the new mongodb-10gen package.

    # sudo apt-get install mongodb-10gen
  7. (Optional) Change the dependency of FileCloud package, so that future upgrades will be easier. To do this edit the file /var/lib/dpkg/status, search for package filecloudprereq.
    Change the dependency setting by changing the line

    Depends: apache2, php5, php5-gd, php-pear, php5-dev, build-essential

    to

    Depends: apache2, php5, php5-gd, php-pear, php5-dev, build-essential, mongodb-10gen