early 15c., "in large quantities," from whole (adj.) + sale; the general sense of "extensive" is attested from 1640s. As a verb from 1800. Related: Wholesaling; wholesaler.
whole nine yards