repositories came first
I believe package repositories predate linspire.
Yum has been around I believe since 1999 or 2000 and apt I believe has been around since before I started using Linux (1998).
They were (are) command line, but gui front ends were quick to follow.