A 40-year-old man was sentenced Thursday morning to more than five years in federal prison after admitting to a carjacking on the Texas Tech campus.