Hi,
I want to update my MongoDB community edition
I have installed MongoDB 6 in my Linux system using Yum how ic an update this to MongoDB 7 (or any latest version)?
I have tried using Yum update but it does not upgrade to Mognodb 7
Hi,
I want to update my MongoDB community edition
I have installed MongoDB 6 in my Linux system using Yum how ic an update this to MongoDB 7 (or any latest version)?
I have tried using Yum update but it does not upgrade to Mognodb 7
Hi,
A way to do this would be to make sure to create the repo file in the documentation below at /etc/yum.repos.d:
following the 7.0 configuration - make sure to create copies of your current config files as yum will clear these in the update - once the repo file is created yum will use the latest version when running sudo yum update mongodb-org
hope this helps,
Gareth
Hi,
It means when any new version realsed we need to update repo file to get latest version using yum update?
Is there any way which will automatically update repo also without updating manually?
Hi, Unfortunately not -
When doing a yum update, it will link to teh latest version set in the repo file.
Many checks need to be done before doing an upgrade as a MongoDB Database Administrator - for example making sure the FCV is set after the upgrade, testing and compatability with any drivers that are connected to MongoDB beforehand, therefore pre-checks are essential and the repo files are always pre-written and provided by MongoDB for your specific upgrade/update.
Hope this helps.
Gareth