How do you put a wheel cylinder on?

take the brake line out of it and there are 2 bolts on the back of the wheel cylinder that come out and it's off.