Spanner wrench that fits is the best way, a large punch can work but it will leave some damage.
There are 2 types of pumps, one has tapered seat gaskets, the other has flat gaskets.
the rebuilt pump should come with the gasket, the type of pumps used have to match the front cover.
The impeller is also the seal and has to have a very smooth surface on the pump body to seal.