Skip to content

Instantly share code, notes, and snippets.

@jordan-gillard
Created August 5, 2024 01:35
Show Gist options
  • Save jordan-gillard/aceb4a7876385322e1cc8c6dc0684f85 to your computer and use it in GitHub Desktop.
Save jordan-gillard/aceb4a7876385322e1cc8c6dc0684f85 to your computer and use it in GitHub Desktop.
How to install `mongosh` on Fedora Linux 40

The following is courtesy of Reddit user salacious_sonogram from this post.

Copy/Paste this:

[mongodb-org-7.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/9Server/mongodb-org/7.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://pgp.mongodb.com/server-7.0.asc

into

sudo nvim /etc/yum.repos.d/mongodb-org-7.0.repo

Then run

dnf install mongodb-org
systemctl stop mongod
rpm -e mongodb-org mongodb-mongosh
dnf install -y mongodb-org mongodb-mongosh-shared-openssl3
systemctl start mongod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment