only consider major version for rhel/cent