Installing MongoDB on Manjaro Linux

NSerus
2 min readMar 29, 2021

Hello peppo!

You can probably use this tutorial on Arch (although if you are using Arch you probably know more than me), but i think this tutorial doesn’t translate very well to Debian based systems, but don’t worry, there are many tutorials out there to help you.

NOTICE: The yay package manager will be necessary.

Getting the package

To get the mongodbpackage wefirst need to get a package to extract that kind of packages called base-devel :

yay -S base-devel

And select all the repository cores

Then get the mongodbwith:

yay -S mongodb

If you want UI interface get the mongodb-compass with:

yay -S mongodb-compass

Activating the service

Now that we have the package installed we need to activate the mongodb.service for the program to work:

sudo systemctl start mongodb --start
sudo systemctl enable mongodb --enables to start on reboot

Running and testing

Now we have everything for mongodb to run on Manjaro linux, just activate the program on the terminal with:

mongo

We can make new databases with:

And create collections with:

If you want to check them out after use show dbs for databases and show collections for collections.

We can also insert data on those collections with db.clientes.insert({name:"Richerd",add:"scared"})and look for them with db.clientes.find() :

And with that we conclude this tutorial.

Have a nice day :)

--

--