ImageMagick upgrade

What is the safe, best way to update to the latest version?
i have:
ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25

Has anyone managed to upgrade to the latest version?