Tar can determine the compression program by the archive suffix.