Before you start this job, raise the front of the truck using a floor jack, place 2 jack stands under the frame for safety and remove the front tires.
Remove the front brake pads, pay attention of their location, normally the brake pad with the wear indicator goes on the back side of the brake rotor, you need to install the new brake pads in the same location.
Remove the brake caliper bracket bolts, you may need to use a breaker bar to loosen them up.
Remove the brake caliper bracket and set it aside.
Use a chisel and hammer to separate the dust cap from the hub, be careful not to drive the chisel further than the outer edge of the dust cap otherwise you will puncture a hole in it
Remove the cotter pin and nut lock.
Remove the nut, washer and outer bearing, pull the hub assembly off the spindle and set it on a clean work bench.