How do I upgrade sites on older versions of WordPress

How do I upgrade sites on older versions of WordPress in a development server environment. I have HostGater shared servers that I can create a folder and copy a site into.