Check here its all explained: http://wiki.simplemachines.org/smf/Upgrading
Make sure you have your backup before upgrading.

Good luck