How to replace door latch

Unless the hinge is in really bad shape there should be no reason to replace the hinge just the pin’s and bushing’s.