It's mostly the same process as any other upgrade you've done before with XF1. Upload the files. Go to the /install page. Log in. Follow the on-screen instructions.
The significant difference is, it might just take longer to run through all of the upgrade steps.
See the FAQ for more information:
https://xenforo.com/community/threads/xf2-faq.132256/