Are you doing this yourself?
If you are, don't take this the wrong way, but if you have to ask what you need to do it, you shouldn't be doing it.
Rears are one area that needs to be left to experts.
If you don't get the tolerances right, your rear will eat itself, and damage hundreds of dollars in parts. This is why even some of the best home mechanics, pay people to do gears.