How to upgrade apps

I get a message that says new minor release are available for ERPNext 12.1.8 and Frappe Framework 12.0.8. But there is no way defined for a new user to know how to upgrade. I am afraid my instance will no longer work and following ERPNext instructions were complex and did not work. I got help on this forum that did work.

Do you upgrade the framework first and then ERPNext? What happens if it is not compatible with Linux or the other for software like pip or python or the database. Is there a check program they run to ensure compatibility first? What is the proper procedure for these updates?

Login as the user you created to run the erpnext software (normally frappe).

cd ~/frappe-bench
bench update

and that’s it