SOLVED: How to Install MongoDB on Arch Linux

How to Install MongoDB on Arch Linux

In this blog, we are going to install MongoDB in Arch Linux [Manjaro] in the simplest way.

So, I needed to install MongoDB in Manjaro and I just went to https://aur.archlinux.org/packages/mongodb/ and tried to install MongoDB as we normally do it.

It was taking a bit time, a bit too time, and quite a time and my laptop fan was now spinning at its highest RPM, and below in the page, in comments section, I saw this comment.

How to Install MongoDB on Arch Linux

I had already waited for quite a few minutes and I surely could not spare that much of storage.

So, I tried for an alternative given there, the mongodb-bin package. For some reason, it didn’t work for me. I tried the solutions from here and here. But no luck. Then, I came across this blog and it worked like charm.

Here is How to Install MongoDB on Arch Linux

Here we use MongoDB’s pre-built binary that skips the entire compilation stage, downloading a pre-built binary from mongodb.org, and packaging it with the necessary configuration files.

yay -S mongodb-bin

If there is any error like ==> Error: Problem importing keys. , then it can be solve by following code:

gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 --recv 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2
sudo pacman -Syy
yay -S mongodb-bin

After installing the package. Start/Enable the mongodb.service daemon.

systemctl enable --now mongodb
systemctl start --now mongodb

Test it:

mongo

Was it helpful for you to install mongodb in arch linux?

Loading ... Loading ...

SOLVED: “we couldn’t sign you in. please try again.” – Microsoft Teams Login Error

1 thought on “SOLVED: How to Install MongoDB on Arch Linux”

Leave a Comment

Your email address will not be published. Required fields are marked *