Notices: This section not yet converted to new layout. Download stats are rolling back out.

MongoDB (Install)

4.0.10

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.
  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.
Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved as a trusted package on 5/30/2019.

MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database written in C++.

MongoDB stores data using a flexible document data model that is similar to JSON. Documents contain one or more fields, including arrays, binary data and sub-documents. Fields can vary from document to document. This flexibility allows development teams to evolve the data model rapidly as their application requirements change.

Developers access documents through rich, idiomatic drivers available in all popular programming languages. Documents map naturally to the objects in modern languages, which allows developers to be extremely productive. Typically, there’s no need for an ORM layer.

Package Parameters

The following package parameters can be set:

  • /dataPath: - where MongoDB stores its database files - defaults to "$env:ProgramData\MongoDB\data\db"
  • /logPath: - where MongoDB stores its logs - defaults to "$env:ProgramData\MongoDB\log"

To pass parameters, use --params "''" (e.g. choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Please Note: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know the package is no longer updating correctly.

To install MongoDB (Install), run the following command from the command line or from PowerShell:

C:\> choco install mongodb.install

To upgrade MongoDB (Install), run the following command from the command line or from PowerShell:

C:\> choco upgrade mongodb.install

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    $toolsDir       = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url64          = 'https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.10-signed.msi'
    $checksum64     = 'd1ddac7ba6e2fbdfaaa0a787b83c165d4ad61795c051dc0f3142717a0b6a3707'
    $checksumType64 = 'sha256'
    $silentArgs     = 'ADDLOCAL="Server,ServerService,Router,Client,MonitoringTools,ImportExportTools,MiscellaneousTools" /qn /norestart'
    $dataPath       = "$env:PROGRAMDATA\MongoDB\data\db"
    $logPath        = "$env:PROGRAMDATA\MongoDB\log"
    
    # Allow the user to specify the data and log path, falling back to sensible defaults
    $pp = Get-PackageParameters
    
    if($pp.dataPath) {
        $dataPath = $pp.dataPath
    }
    if($pp.logPath) {
        $logPath = $pp.logPath
    }
    
    # Create directories
    New-Item -ItemType Directory $dataPath -ErrorAction SilentlyContinue
    New-Item -ItemType Directory $logPath -ErrorAction SilentlyContinue
    
    $silentArgs += " MONGO_DATA_PATH=`"$dataPath`" "
    $silentArgs += " MONGO_LOG_PATH=`"$logPath`" "
    
    $packageArgs = @{
      packageName    = $env:ChocolateyPackageName
      unzipLocation  = $toolsDir
      fileType       = 'msi'
      url64bit      = $url64
      checksum64    = $checksum64
      checksumType64= $checksumType64
      softwareName   = 'MongoDB *'
      silentArgs     = $silentArgs
      validExitCodes = @(0,3010)
    }
    
    Install-ChocolateyPackage @packageArgs
    
    # start the service
    Start-Service -Name MongoDB -ErrorAction SilentlyContinue
    
    # service status
    if((Get-Service -Name MongoDB).Status -ne "Running") {
      Write-Warning "  * MongoDB service is currenty not running, this could be due to an required reboot of one of the dependencies"
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • MongoDB Inc

Copyright

MongoDB Inc

Tags

Release Notes

https://docs.mongodb.com/manual/release-notes/

Version History

Version Downloads Last updated Status
MongoDB (Install) 4.0.9 2233 Tuesday, April 16, 2019 approved
MongoDB (Install) 4.0.8 1173 Friday, March 29, 2019 approved
MongoDB (Install) 4.0.7 376 Monday, March 25, 2019 approved
MongoDB (Install) 4.0.6 2281 Thursday, February 7, 2019 approved
MongoDB (Install) 4.0.5 1956 Thursday, December 20, 2018 approved
MongoDB (Install) 4.0.4 612 Monday, December 10, 2018 approved
MongoDB (Install) 3.6.3 3166 Thursday, March 8, 2018 approved
MongoDB (Install) 3.6.2 571 Wednesday, February 21, 2018 approved
MongoDB (Install) 3.6.0 17306 Tuesday, December 19, 2017 approved
Show More

Discussion for the MongoDB (Install) Package

Ground rules:

  • This discussion is only about MongoDB (Install) and the MongoDB (Install) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or MongoDB (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok