@jamespharvey20 I have removed install_compass as it is not supporting Arch Linux and added mongodb-compass as an optional dependency
I also (maybe) split tools package in a later update 4.0.7(?) and use official deb or rpm packages for it (maybe)
| Git Clone URL: | https://aur.archlinux.org/mongodb-bin.git (read-only, click to copy) |
|---|---|
| Package Base: | mongodb-bin |
| Description: | A high-performance, open source, schema-free document-oriented database |
| Upstream URL: | https://www.mongodb.com/ |
| Keywords: | database document-oriented mongo mongod mongodb mongos |
| Licenses: | SSPL-1.0 |
| Conflicts: | mongodb, mongodb-shell-bin |
| Provides: | mongodb |
| Submitter: | ali.molaei |
| Maintainer: | ali.molaei (rafaelff) |
| Last Packager: | ali.molaei |
| Votes: | 96 |
| Popularity: | 0.99 |
| First Submitted: | 2019-01-28 09:01 (UTC) |
| Last Updated: | 2026-04-17 13:54 (UTC) |
@jamespharvey20 I have removed install_compass as it is not supporting Arch Linux and added mongodb-compass as an optional dependency
I also (maybe) split tools package in a later update 4.0.7(?) and use official deb or rpm packages for it (maybe)
@ali.molaei sorry I somehow missed the backup option!
Regarding a split package, doesn't make a difference to me, just my responses to your comments. You could make this PKGBUILD build both mongodb-bin and mongodb-tools-bin. Anyone not using tools would save libpcap as a dependency. Naming it this way would also prevent a naming conflict. I don't know for sure, but I think mongodb-tools is going to get dropped to the AUR as well, in part so mongodb and it can be updated in sync.
Regarding WiredTiger, removing it from the mongodb from source PKGBUILD causes a compilation failure. The wiredtiger package includes header files and the libraries, and the compilation failure is from missing header files. I'm thinking the library in it isn't used though. Although they're including WiredTiger in their source tree, as-is, it doesn't seem to find the header file. I might file an upstream bug at some point to try to remove that dependency from the source package.
Also, since my original comment, I found python is just a dependency for install_compass, like you said. That's a script to install compass, a GUI. But, the script detects the OS, and if linux, the distribution. It doesn't run on Arch, saying it's an unsupported distribution. There's an AUR package, mongodb-compass. mongodb (from source) is going to remove mongodb-compass from the package, and you can do the same to remove this dependency.
So, minutes ago, I had a talk with Matt Lord, Senior Product Manager of MongoDB, and He told me that there is no dependency on WiredTiger in this package, because it’s statically linked in, and also "Not a separate concern for builds from source either, WiredTiger is part of the source tree (vendor’d in via regular drops from their separate tree)" but it is a need for libpcap for mongoreplay, so I will add it, python2 is also needed for install_compass script, so I will add it too :)
Thank You Sir!
You're a life/time saver :)
Cheers!
@jamespharvey20 backup option is already in PKGBUILD, but about Libpcap and WiredTiger I have contacted MongoDB official support and waiting for them to answer me, I also think they are not needed by this compiled binary of MongoDB for Linux, as they didn't say anything about it anywhere.
I think I will keep MongoDB-tools inside the package, as it is contained in the mongodb-linux-x86_64-4.0.6.tgz file, so you are downloading it already and there is a waste of resources to remove them in the created package for the arch. And also there are incompatibility issues between this package and community package, for example, right now our version is 4.0.6 and mongodb-tools version is 4.0.5, so if I was removed them from the package, I couldn't make this package until they update that package to 4.0.6
I think it's correct to not have wiredtiger as a dependency for this -bin package. WiredTiger is of course the new default storage engine starting in 4.0, which deprecated MMAPv1. Running "mongo", then executing "db.serverStatus().storageEngine" returns a storage engine name of "wiredTiger", and in a fresh system without package wiredtiger installed, I can properly store documents in mongo on this storage engine. This is just a guess, as I've never looked at mongodb's source, but I'm thinking the required WiredTiger source is compiled into upstream's pre-compiled binary, or maybe a fork of it is already in mongodb's source. Furthermore, adding it as a dependency, namcap says it's included and not needed.
namcap says dependency libpcap is needed for mongoreplay. The community PKGBUILD included this as an optdepends, so it's probably worth adding: (community referred to mongosniff, which I'm guessing is something old?)
optdepends=('libpcap: needed for mongoreplay')
namcap also says python2 is an uninstalled dependency, as a referenced library. I'd probably lean toward adding it just because of the namcap warning, but I'm not familiar enough with mongodb to know exactly what uses it. That said, it wasn't listed as a dependency in community (only as a dependency of its makedepends and checkdepends.)
This should also be added, from the community PKGBUILD:
backup=('etc/mongodb.conf')
It's worth considering making this a split package, to follow how community had -tools separate. I'm not sure the reasons behind -tools originally being separate, so currently have no opinion on this.
@navarroaxel it is added, thanks for telling me
@francoism90 I have not it installed and mongodb is working for me, is it required for some functionalities that i don't use? maybe? I am not sure about exact dependancies of this package, because i had mongodb installed, and then i installed this from mongodb website and removed all unnecessary dependancies including wiredtiger using pacman -Rsnc $(pacman -Qdtq), and it is working for me without that, but i'm not sure about the packages that are not uninstalled and required, so, i will be happy to tell me if it is anything necessary for it to work
You can also look at mongodb34-bin that is taking the same approach and have no dependancies...
Doesn't this depend on wiredtiger at all? :)
Hi! thanks for your work, please add mongodb into the keywords to find this package in the AUR search page easier.
Pinned Comments
ali.molaei commented on 2025-10-24 19:22 (UTC) (edited on 2025-10-24 19:25 (UTC) by ali.molaei)
8.2 is a major update so you either have to update your database Upgrade 8.0 to 8.2 or use mongodb80-bin
ali.molaei commented on 2021-07-28 14:29 (UTC) (edited on 2024-11-02 19:21 (UTC) by ali.molaei)
If you get core dumps on version 5 or above, read this: https://jira.mongodb.org/browse/SERVER-58648