If it’s just a regular Linux server (not one of those new fangled docker variants), you just overwrite the metabase.jar file, then restart the service.
On my Ubuntu server, I normally just overwrite the jar, then do any OS updates at the same time, then reboot.
If it goes wrong, you can just restore your MySQL backup (you do have one, don’t you