how do i replace a wheel bearing? on 2003 Chevrolet S10

i pulled the tire off and the rotor is loose i believe its the wheel bearing i'm not sure though would that be the reason?

Asked by for the 2003 Chevrolet S10
There are several options 2WD/4WD, S10 or Blazer S10 each have different instructions. There is a company that independent auto repair shops get their information from, this same information is available inexpensively for people that work on their own cars.. The information is year make and model specific, covering repair procedures, torque specifications, fluid capacities and specifications, service bulletins, component locations, wiring diagrams ect.... Alldata is very easy to navigate