Unscrew and remove the trim screws from around the lock with a Philips screwdriver. Remove the trim if possible at this point and set aside.
Unscrew and remove the edge plate screws from the trim around the bolt with a Philips screwdriver if reversing a deadbolt lock. Pull the trim and bolt from the door edge and set aside.
Pull the doorknobs or lock trim apart and out of the door panel. Replace the knobs or lock cylinder on the opposite sides of the door panel.
Replace the deadbolt and edge plate. Replace the lock trim and all screws. Test the lock.