How do you replace a speedometer cable on a Chevrolet Pickup S10?

You didn't mention what year the S10 is but, yours probably doesn't have a cable driven speedometer. It is electronic.