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

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.