Remove the hub, bearings and seal.
Use a blunt chisel or punch to knock out the bearing rings from the hub.
Clean the bearing ring seats in the hub. Lubricate the new rings and press them into place. Make sure that the rings are installed without distortion, otherwise they may be damaged.
Lubricate and install the bearings and seal, then install and adjust the hub.