How do you replace o2 sensor on 1998 subaru legacy?

Use a 7/8" O2S wrench, socket, or crow's foot to unscrew the sensor, then put a new one in.