You need shifted cable housing for the shifter cables and brake cable housings for the brake cables. They are not the same size.
Be sure to replace the short housing found at the rear dérailleur. It's the first to wear out and the most critical for good shifting performance.