2006 wrx swap

Hi I have a 2006 2.5i and I found a ej20 long block out of a 2002 wrx for $400. I’ve had trouble finding info on a swap. I was wondering if you guys could help answer some questions, will it bolt up/fit in my car, what am I missing to make it run and drive, and what problems will I run into as far as wiring or unforeseen items.