How to Install and Uninstall mongodb Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 13,2024

1. Install "mongodb" package

Here is a brief guide to show you how to install mongodb on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install mongodb

2. Uninstall "mongodb" package

This guide let you learn how to uninstall mongodb on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove mongodb $ sudo apt autoclean && sudo apt autoremove

3. Information about the mongodb package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: mongodb
Architecture: amd64
Version: 1:3.6.3-0ubuntu1.4
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MongoDB Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 43
Depends: mongodb-server (>= 1:2.4.1-2)
Filename: pool/universe/m/mongodb/mongodb_3.6.3-0ubuntu1.4_amd64.deb
Size: 10152
MD5sum: 5283320b724092ca5afaa43989f5bfb7
SHA1: d0c4d9031ed0bd0377312a4c471056037443ea8f
SHA256: b19543b0a038071683b61c8d6d72cd00678f58ef258ba2f9882d803b711e2f40
SHA512: fee271fb06bf22fb111152b3a33efe47b1ede921b18c1f7982bbcc0698aac6c911d561d3581e60fd4e271d264e3f55a87ab445ba4d32742c701fd57216f5d792
Homepage: https://www.mongodb.org
Description: object/document-oriented database (metapackage)
Description-md5: 8fa8c030cb4f008d0ac716b496446f9d

Package: mongodb
Architecture: amd64
Version: 1:3.6.3-0ubuntu1
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MongoDB Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 43
Depends: mongodb-server (>= 1:2.4.1-2)
Filename: pool/universe/m/mongodb/mongodb_3.6.3-0ubuntu1_amd64.deb
Size: 9892
MD5sum: 5fb52bb05ba855c1407e2458d8617c22
SHA1: ab88f210ec3d78c31382fb6be4029cf6277a0a35
SHA256: 79c8f7a2b3ed86754f82e9b30109c4d24a911d42b74f9a474837cfd8df593679
Homepage: https://www.mongodb.org
Description: object/document-oriented database (metapackage)
Description-md5: 8fa8c030cb4f008d0ac716b496446f9d