1. Remove the rear door unit.
2. Remove the screws, then remove the rear door latch and lock actuator.

3. Install in the reverse order of removal.
Front door latch and lock actuator removal/installation
Front door key cylinder removal/installationMazda 6 Service Manual: Manual Transaxle Shift Pattern
The shift pattern of the transaxle is conventional, as shown.
Depress the clutch pedal all the way down while shifting; then release it slowly.
Your vehicle is equipped with a device to prevent shifting to R (reverse) by mistake. Push the shift lever downward and shift to R.
...
Mazda 6 Service Manual: Oil pressure switch removal/installation
Warning
When the transaxle and ATF are hot, they can badly burn. Turn off
the engine and wait untill they are cool before replacing ATF.
1. Disconnect the negative battery cable.
2. Remove the under cover.
3. Disconnect the cord assembly connector.
4. Remove the oil pressure switch.
...