Jerry Kilgore has won the Republican nomination for governor.