tis-mongodb-server-community-7 icon

MongoDB Server Community

Silent install package for MongoDB Server Community

7.0.39.0-6
System and network
System and network

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

package           : tis-mongodb-server-community-7
version           : 7.0.39.0-6
architecture      : x64
section           : base
priority          : optional
name              : MongoDB Server Community
categories        : System and network
maintainer        : Kevin Guerineau
description       : MongoDB is a document-oriented database management system that can be distributed to any number of computers and does not require a predefined data schema.
depends           : 
conflicts         : tis-mongodb-server-community-6,tis-mongodb-server-community-5
maturity          : PREPROD
locale            : all
target_os         : debian-bookworm
min_wapt_version  : 2.2
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : MongoDB est un système de gestion de base de données orienté documents, répartissable sur un nombre quelconque d'ordinateurs et ne nécessitant pas de schéma prédéfini des données.
description_pl    : MongoDB to zorientowany na dokumenty system zarządzania bazą danych, który może być dystrybuowany do dowolnej liczby komputerów i nie wymaga predefiniowanego schematu danych.
description_de    : MongoDB ist ein dokumentenorientiertes Datenbankverwaltungssystem, das auf beliebig vielen Computern verteilt werden kann und kein vordefiniertes Datenschema benötigt.
description_es    : MongoDB es un sistema de gestión de bases de datos orientado a documentos que puede distribuirse a cualquier número de ordenadores y no requiere un esquema de datos predefinido.
description_pt    : MongoDB é um sistema de gestão de bases de dados orientado para a documentação que pode ser distribuído para qualquer número de computadores e não requer um esquema de dados pré-definido.
description_it    : MongoDB è un sistema di gestione di database orientato ai documenti che può essere distribuito su un numero qualsiasi di computer e non richiede uno schema di dati predefinito.
description_nl    : MongoDB is een documentgeoriënteerd databasebeheersysteem dat op een willekeurig aantal computers kan worden gedistribueerd en geen vooraf gedefinieerd gegevensschema vereist.
description_ru    : MongoDB - это документо-ориентированная система управления базами данных, которая может быть распространена на любом количестве компьютеров и не требует предопределенной схемы данных.
audit_schedule    : 
editor            : MongoDB, Inc
keywords          : 
licence           : AGPL3.0
homepage          : https://www.mongodb.com
package_uuid      : 382c262c-08c7-4759-b37f-42dbab3d5ee7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6c1229fda0b906acc164f55d1c3b9b221a60b7b009b795fcc9d2da85e1f25eb3
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-07-22T19:36:27.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : CxOVikU+5jyx+kxWLqDjp67PvSLkrBKE6zAW5tSlHPro/fTAL0GTgDHEJYBG4alzrMuriVaoyjNVRs8HucBc/qnBZ4Gu2WspNabSy2ZKT4mGyNINtZ6IGEbfp+bzEJf5kz3BHJNMe+jRAHR2aqmoblLvWZbDG+yC3HAUcxqP4ccnJJOL5KN56FuLcNRsLHe8hhppT/N5zjheERrxjGDz7kqsWfQPfNDA6hsr8lLfnidluV2Q6je/ifqqSvo1uRatIBXYR30Mn6UZ0Hw1gwlzeu1JS+tCRb3wCRWGWaq3+jLOhXBIOrS9yBQ/oMgJzqp1jvLEAR+K366XbN4q5AXcpw==

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    run("LANG=C DEBIAN_FRONTEND=noninteractive apt-get install ./*.deb -y --allow-downgrades")

    print('Enable and start mongod service')
    systemd_enable_start_service('mongod')


def uninstall():
    uninstall_apt("mongodb-database-tools mongodb-mongosh mongodb-org-database mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools",autoremove=True)



# -*- coding: utf-8 -*-
from setuphelpers import *
import gzip
from io import BytesIO
from setuphelpers import Version,wgets
from setupdevhelpers import *
import requests

def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies_from_wapt_console()

    if not proxies:
        proxies = get_proxies()

    dict_arch = {"x64": "amd64"}

    urldepot = 'http://repo.mongodb.org/apt/debian'
    dist = control.target_os.split('-')[1]

    arch = dict_arch[control.architecture]
    package_name_list = ["mongodb-org-server","mongodb-org","mongodb-database-tools","mongodb-mongosh","mongodb-org-database","mongodb-org-database-tools-extra","mongodb-org-mongos","mongodb-org-shell","mongodb-org-tools"]

    if len(dist.split(' ')) < 2 :
        dist = dist + "/mongodb-org/7.0" +  ' ' + "main"

    disturl = dist.replace(' ','/')

    with gzip.open(BytesIO(requests.get('%s/dists/%s/binary-%s/Packages.gz' % (urldepot,disturl,arch),proxies=proxies).content)) as f:
        data = f.read().decode('utf-8')

    list_package = listcontrol_to_dict_data(data,'\nPackage: ')
    all_dep=[]

    last_version= None
    list_deb = []
    for package_name in package_name_list :

        last_package = sorted([u for u in list_package if u['package'] == package_name], key=lambda p: (Version(p['version'].split(':',1)[-1].split('+')[0],4)), reverse=True)[0]
        if not last_version:
            last_version = last_package['version'].split(':',1)[-1].split('+')[0]

        all_dep.append(last_package)

        for s in last_package.get('depends','').split(','):
            for p in s.split('|'):
                get_all_dep_version_pacakge(list_package,p.split('(')[0].strip(),all_dep)

        for u in all_dep:
            list_deb.append(urldepot + '/' + u['filename'])

    list_all_file = []
    for f in list_deb:
        filename = f.split('/')[-1]
        list_all_file.append(filename)
        if not isfile(filename):
            wget(f,filename,proxies=proxies)

    for f in glob.glob('*.deb'):
        if not f in list_all_file:
            remove_file(f)

    control.set_software_version(str(Version(last_version,4)).split('-')[0])
    control.save_control_to_wapt()



def listcontrol_to_dict_data(data=None, first_entry=None):
    list_package = '\n' + data
    list_control=[]
    for i in list_package.split(first_entry):
        if not i.strip('\n'):
            continue
        list_control.append(first_entry.replace('\n','') + i)

    list_package = []
    for pkg in list_control:
        entry = {}
        gpg = False
        for l in pkg.split('\n'):

            if '-----BEGIN PGP PUBLIC KEY BLOCK-----' in l:
                gpg = True
                continue
            if '-----END PGP PUBLIC KEY BLOCK-----' in l:
                gpg = False
                continue
            if gpg :
                continue

            if not l:
                continue
            if (':' in l) and (not '::' in l) and (not l.startswith(' ')) :
                key = l.split(':',1)[0].strip().lower()
                value = l.split(':',1)[1].strip()
                entry[key] = value.strip('\n')
            else:
                entry[key] =  entry[key].strip('\n') + ' ' if entry[key].strip() else "" + l.strip()

        list_package.append(entry)
    return list_package

def get_all_dep_version_pacakge(list_package,package_name,all_dep):
    last_package = sorted([u for u in list_package if u['package'] == package_name], key=lambda p: (Version(p['version'].split(':',1)[-1].split('+')[0])), reverse=True)
    if last_package:
        last_package = last_package[0]
        all_dep.append(last_package)
    else:
        return
    for k in last_package.get('depends','').split('|'):
        for p in k.split(','):
            get_all_dep_version_pacakge(list_package,p.split('(')[0].strip(),all_dep)

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
d5625e093ff357e6412bdbfa8eb53d09423b5cfb064b78e6c602fadf91468ad0 : WAPT/control
6c1229fda0b906acc164f55d1c3b9b221a60b7b009b795fcc9d2da85e1f25eb3 : WAPT/icon.png
be4edc67e044a7c6f119434a08bd0e10bc404c479149ab46a929eb18c8946719 : luti.json
101eb691713880ad2ece723ce4a655e81c6c026328d8e1cfd84aef687d4681b4 : mongodb-database-tools_100.17.0_amd64.deb
1244a88605d9ffcdcd64e3a78c8e31c2cc4c005a9d52c82f0aad1514e0f885d9 : mongodb-mongosh_2.9.2_amd64.deb
c7966e6516718642727eac0bbae28001dfd4e7eb83ea6de1e5641cbe71ca15f8 : mongodb-org-database-tools-extra_7.0.39_amd64.deb
fbe32fa6d0dce795927f13018aac36292f9216efee631964f4808099791a3efc : mongodb-org-database_7.0.39_amd64.deb
65de8e7c23737077895551f7f8b3647c0fba4580316f5117c575a21374799d92 : mongodb-org-mongos_7.0.39_amd64.deb
c8f66a79aeb02868e5a755c14a094a12dfe6786c99a6898d75e27f5dcbf0c4fd : mongodb-org-server_7.0.39_amd64.deb
714898ab2df5499617b0fa57b26ab26d102b24abea280562f59112d43fb4834a : mongodb-org-shell_7.0.39_amd64.deb
bb4355f139e4505b1c7a93b65912d5f577f209a6cd2cace7c19fc330f797e29a : mongodb-org-tools_7.0.39_amd64.deb
5e16feea9ae195a972cd2c504b046d1ec4a42677dfea5053695bb283c0f70e7b : mongodb-org_7.0.39_amd64.deb
5325a210892c3ea085026662a958a9d56c1b79ebec29cf6253629ea4ad67a5e4 : setup.py
fa2bc40673cff707e8837e3ef6c29d88a576cd2a5241fc935d548d6b7967ae64 : update_package.py