Raspberry Pi: MongoDB

Installing MongoDB 7.0 on the Raspberry Pi 5 (Woodworm)

curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ arch=arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo chown mongodb:mongodb /var/log/mongodb/
sudo chown mongodb:mongodb /var/lib/mongodb/
sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl status mongod

Source: Installing MongoDB 7.0 on the Raspberry Pi 5

4 thoughts on “Raspberry Pi: MongoDB

  1. Hi,

    I am also trying to install MongoDB (4.4) on Raspberry OS 64bits.

    But when running the command:

    # apt install mongodb-org

    I get this error:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package mongodb-org

    Though running this command:

    # apt search mongodb-org
    gives me the following result:

    Sorting… Done
    Full Text Search… Done
    mongodb-org/focal 4.4.4 amd64
    MongoDB open source document-oriented database system (metapackage)

    Would you have any idea, what the solution might be?
    Or where the problem is?

    1. 64-bit “fresh” installation:
      $ mongo
      MongoDB shell version v4.4.4
      connecting to: mongodb://

Leave a Reply

Your email address will not be published.