2

I'm trying to update my mongodb version on my raspberry pi. I've runned following commands

$ sudo apt-get install mongodb

So far so good. I can access the mongo shell by typing mongo in the console. I can start the mongodb with the service:

$ sudo service mongodb start

The mongodb version is 2.4.14.

The mongodb works fine in projects. My problem is that in some of my mongo queries I use the $lookup stage. This service was released in version 3.2. Therefore my queries won't work with version 2.4.14.

I've tried to read the documentation (which there is not so much off??) to update my mongodb but I can't find a proper answer. So my question is: Is it possible to update my mongodb on my RaspberryPi, and if yes, how?

My OS informations on my raspberry pi:

Linux myRaspberryPi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian

/Chris

crellee
  • 121
  • 1
  • 2

2 Answers2

1

Once you depart from stable software releases all bets are off. It may require newer version of libraries which are incompatible with the rest of the installed packages. In other words you could break your system.

If you are determined to carry on then download the required sources and build on the Pi.

joan
  • 71,852
  • 5
  • 76
  • 108
1

MongoDB 3.2 requires a 64-bit OS. Current Raspberry Pi official OSs are still 32-bit, even for the R-Pi 3. You can "experiment" with MongoDB 3.2 on an R-Pi 3 using Debian buster. See blog post at andyfelong.com

You can also find 32-bit MongoDB 3.0.x binaries for Raspbian Stretch, there.