replace pkg_version with pkg_info