There's a trick… Assuming no tangential component to the body's motion (as would be the case if it were released from rest) then, working with radial components of force and velocity, Newton's second law gives
[tex]\frac{GMm}{r^2}=-m\frac{dv}{dt}[/tex]
So[tex]\int{\frac{GMm}{r^2}}dr=-m\int{\frac{dv}{dt}dr}[/tex]
But [itex]\frac{dr}{dt}=v[/itex], so
[tex]\int{\frac{GMm}{r^2}}dr=-m\int{v\ dv}[/tex]
Both these integrations are easy. Either put limits in, or leave as indefinite integrals and find the value of the arbitrary constant afterwards.
You may well now realize that the result follows immediately from energy conservation. What I did above is to establish the [itex]\frac{1}{2}m\ v^2[/itex] kinetic energy formula (and that for gravitational PE due to a spherically symmetric body) from first principles, because doing this seemed more in the spirit of your question than simply quoting energy formulae.