Is there a way i can install Mongodb server and compass in my Kali linux

What have you tried: have installed from the official website of mongodb by downloading the .deb file.

What is the error: Mongodb service failed to start

What device is this on: Kali Linux

did you install .deb using apt? dpkg doesn’t consider dependencies and that might be your issue

Dude, Kali is not a distribution kit for a server or a home system. Kali’s narrative is the rapid deployment of a system with a bunch of pre-installed software. Use the latest stable Debian distribution

1 Like

kali is based on debian testing . and some people use kali as their daily driver. linux is linux

used dpkg during installation

The usual way to install applications on Debian-based Linux distros is using apt. It will automatically install any required dependencies.

sudo apt search mongodb

gives results relating to mongodb.

On my system if I issue:

sudo apt install mongodb

It returns:

Installing:
mongodb

Installing dependencies:
libgoogle-perftools4t64 libtcmalloc-minimal4t64 mongo-tools mongodb-server
libstemmer0d libyaml-cpp0.8 mongodb-clients mongodb-server-core

Note it is automatically installing the server and the clients. I recommend using apt from now on, unless you have a specific need to do otherwise.

1 Like

Okay, thank you for this