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.
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.
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.??
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.