It also depends on the platform. However the basic proceudre is same as advised by Daniel. For platforms like 7600, ASR1k etc you have to do IOS upgrade for both RSP (if appilicable).
You can refer to cisco sites for more information specific to platform.
Thanks and Regards,