Don't loosen the caps. Use a coat hanger and make a little hook to slip in beside the camshaft, then pull out, and slide it 180* around and pull, working the seal out.
Put a coating of motor oil on the new seal, all over it, and position into place, and use the old seal and small hammer to tap...