How to upgrade MongoDB from 4.4 to 5.0 on Ubuntu 20.04 LTS

Hello Team,

To upgrade MongoDB from 4.4 to 5.0 on Ubuntu 20.04 LTS , I found the below link.

This method of upgrade tells that we need to replace existing binary with new new binary.

How to achieve this replacing of binaries. Does this mean we will simply over write the existing one with new one just by copying the new binary to MongoDB installation path.

Is there any alternate method to upgrade MongoDB other than binary replacement.

Thanks and Regards
@Satya_Oradba

Follow the upgrade documentation in the release notes applicable to your deployment:

1 Like

If you install via tarball the binaries can exist in different directories. Installing and upgrading via distribution repos and tools is common and they almost always replace the existing binaries, there is no real issue doing it.

Hi @chris
Thanks for the update.

It seems you did not get what I am asking.

In this link pasted below:

It was mentioned that

Upgrade the instance by replacing the existing binaries with new binaries.

What is meant by “replace existing binaries with new binaries” . Is it simply over writing the existing one with new one just by copying the new binary to MongoDB installation path.??

OR

Installation of new version will automatically upgrade the existing one.??

Please shed some light on it.

Thanks and Regards
@Satya_Oradba

Either, it depends on your installation method.

Package managers(yum, dnf, apt) will replace the existing binaries. With manual installation the operator can overwrite the existing binaries or install them in a separate directory.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.