Here are the upgrade steps for the new Fedora 40 release from the earlier Fedora 39 workstation version.