- Debian 10/Buster :
- Ubuntu 20.04 LTS (Focal Fossa):
-
from official mongodb repo : link
-
Or with commands 👇😉
sudo curl -o /etc/init.d/mongod https://raw.githubusercontent.com/mongodb/mongo/master/debian/init.d
sudo chmod +x /etc/init.d/mongod
- Install
mongodb-org-server
:sudo dpkg --unpack mongodb-org-server_4.4.1_amd64.deb
- Edit
/var/lib/dpkg/info/mongodb-org-server.postinst
file and comment the linesystemctl daemon-reload
. then save and exit. - Run
sudo dpkg --configure mongodb-org-server
- done. now you can manage service by
sudo service mongod start|stop|restart
- Install
sudo dpkg -i mongodb-org-shell_4.4.1_amd64.deb
- Install
sudo dpkg -i mongodb-org-mongos_4.4.1_amd64.deb
- Install
sudo dpkg -i mongodb-org-database-tools-extra_4.4.1_amd64.deb
- Install
sudo dpkg -i mongodb-database-tools_100.2.0_amd64.deb
- Install
sudo dpkg -i mongodb-org-tools_4.4.1_amd64.deb
- Install
sudo dpkg -i mongodb-org_4.4.1_amd64.deb
- Run
sudo apt install -yf
to fix any missing dependencies - You can verify installed packages by
dpkg -l | grep mongodb
@gutisalex , Thanks for sharing the solution 👍