💡These steps are based on updating from v4.0.2 to v4.1.2. And is based on my installation (instructions are here). Hopefully you might get some use out of this if you need to update your machine, but I make no promises.
Login on the machine using ssh