Hi, I’m trying to install mongo 4.4 using this guide
How to Install MongoDB on Rocky Linux 9: A Step-by-Step Tutorial (sqliz.com)
I created the repo file, and when I try to install
sudo dnf install -y mongodb-org
Last metadata expiration check: 0:18:32 ago on Mon 13 Nov 2023 10:00:00 PM +08.
No match for argument: mongodb-org
Error: Unable to find a match: mongodb-org
sudo dnf repolist
repo id repo name
appstream Rocky Linux 9 - AppStream
baseos Rocky Linux 9 - BaseOS
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras Rocky Linux 9 - Extras
mongodb-org-4.4 MongoDB Repository
I can install mongo 6 fine with same method. I see in mongo repo has for 4.4 for redhat 9
MongoDB Repositories
If dnf cannot see mongodb-org, then what does it see?
dnf list mongo\*
(Browsing the URL of the repo says: no org here.)
If the writer of guide has seen mongodb-org-4.4, but the same repo now does not have it, then maintainers of the repo have removed the packages for some reason. You should ask them about it?
That output looks odd. The three mongo-c-* packages look as expected, with format:
name.arch version repoid
but the rest is a mess and there are even couple “el8” that definitely should not show in el9 system.
Note also that dnf list mongo\*
and dnf list mongo*
are potentially different commands. For the latter the bash can expand the glob (mongo*
) to filenames in current directory. One does not want to pass filenames to dnf list
.
I did dnf list mongo*, I guess when I paste back here, it got lost.
It seems that mongo4.4 does not support v9, only 8. Strangely, I could find a guide on it.