Search youtube for "pool pump replace". There are many examples. You might get lucky and find one that closely matches your setup (or not). Even if there is nothing close, I find it helpful to see what others have done to get a better feel for what I might have to do.
I replaced my pump that had been cemented (Why was it cemented instead of using a union? maybe so the installer would get called back when the pump broke? I don't know, I bought the house this way). You don't want to move the position of the pump unless you absolutely have to as this will require more plumbing work (and depending how much slack in in your electrical line, you could need a new one of these too). I bought all the couplings that I needed and laid them out next to my existing plumbing to make sure there was room. I also measured everything a few times because it was very close. Finally, because it was so close to not fitting, I found a "mend outside pipe extender" just in case - this is a coupling that goes over a coupling for when there isn't enough pipe coming out of the upstream coupling to support a new coupling. This did seem a little shady, but my choice was potentially extensive re-plumbing to "do it right" vs. trying out a shady coupling that might work (and if it doesn't, I'll just rip out everything and do it right so why not try). It turned out I didn't need this, until I made a mistake and had to re-plumb part, and then I needed it. After almost 2 years, no leaks.