3 best methods to find out the installed version of MongoDB on Linux
What is MongoDB?
MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents, allowing for easy storage and retrieval of structured, semi-structured, and unstructured data. Unlike traditional relational databases that use tables and rows, MongoDB uses collections and documents, making it more adaptable to changing data structures. It was designed to handle large volumes of data and is known for its scalability, flexibility, and ease of use. MongoDB is open-source and has a wide range of deployment options, including cloud-based services like MongoDB Atlas and on-premise solutions. Its architecture supports horizontal scaling, enabling it to manage high traffic and large datasets efficiently. Additionally, MongoDB provides powerful querying capabilities, indexing, and real-time aggregation, making it suitable for a variety of applications, from simple CRUD operations to complex data processing tasks.
1. Via the server command
sven@fedora:~$ mongod –version
db version v7.0.25
Build Info: {
„version“: „7.0.25“,
„gitVersion“: „96dce3da49b8d2e9e0d328048cb56930eb1bdb2b“,
„openSSLVersion“: „OpenSSL 3.2.6 30 Sep 2025“,
„modules“: [],
„allocator“: „tcmalloc“,
„environment“: {
„distmod“: „rhel90“,
„distarch“: „x86_64“,
„target_arch“: „x86_64“
}
}
2. The package manager rpm on Linux
sven@fedora:~$ rpm -qa | grep mongodb-org
mongodb-org-server-7.0.25-1.el9.x86_64
3. The dnf command on the Red-Hat Family of Linux
sven@fedora:~$ dnf info mongod
Name : mongodb-org-server
Epoch : 0
Version : 7.0.25
Release : 1.el9
Architektur : x86_64
Installationsgröße : 175.9 MiB
Quelle : mongodb-org-database-7.0.25-1.el9.src.rpm
Aus dem Repository : mongodb-org-7.0
Zusammenfassung : MongoDB database server
URL : http://www.mongodb.org
Lizenz : SSPL
Beschreibung : MongoDB is built for scalability, performance
: and high availability, scaling from single ser
: ver deployments to large, complex multi-site a
: rchitectures. By leveraging in-memory computin
: g, MongoDB provides high performance for both
: reads and writes. MongoDB’s native replication
: and automated failover enable enterprise-grad
: e reliability and operational flexibility.
:
: MongoDB is an open-source database used by com
: panies of all sizes, across all industries and
: for a wide variety of applications. It is an
: agile database that allows schemas to change q
: uickly as applications evolve, while still pro
: viding the functionality developers expect fro
: m traditional databases, such as secondary ind
: exes, a full query language and strict consist
: ency.
:
: MongoDB has a rich client ecosystem including
: hadoop integration, officially supported drive
: rs for 10 programming languages and environmen
: ts, as well as 40 drivers supported by the use
: r community.
:
: MongoDB features:
: * JSON Data Model with Dynamic Schemas
: * Auto-Sharding for Horizontal Scalability
: * Built-In Replication for High Availability
: * Rich Secondary Indexes, including geospatial
: * TTL indexes
: * Text Search
: * Aggregation Framework & Native MapReduce
:
: This package contains the MongoDB server softw
: are, default configuration files, and systemd
: service files.
Anbieter :