我正在尝试在 Red Hat 上安装 bgzip。
sudo yum install bgzip
说
Updating Subscription Management repositories.
Last metadata expiration check: 0:18:47 ago on Thu 19 May 2022 12:03:12 PM CDT.
No match for argument: bgzip
Error: Unable to find a match: bgzip
遵循以下建议https://installati.one/centos/7/htslib-tools/我也尝试过sudo yum install htslib-tools
几乎相同的反应。
我已经完成了yum
and dnf
:
sudo yum makecache
进而sudo yum -y install htslib-tools
但这些命令序列都不起作用。
我也尝试过https://centos.pkgs.org/7/epel-x86_64/htslib-tools-1.9-5.el7.x86_64.rpm.html并下载htslib-1.9-5.el7.src.rpm
,然后尝试通过安装,sudo yum localinstall htslib-1.9-5.el7.src.rpm
但失败:
Updating Subscription Management repositories.
Last metadata expiration check: 0:07:57 ago on Thu 19 May 2022 12:23:23 PM CDT.
Error: Will not install a source rpm package (htslib-1.9-5.el7.src).
我该如何安装htslib
?
答案1
htslib-tools
提供的包可bgzip
在EPEL对于 RHEL 7 和 8(您没有指定正在运行的 RHEL 版本),因此只需启用 EPEL:
RHEL 8:
subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RHEL 7:
subscription-manager repos --enable rhel-*-optional-rpms \
--enable rhel-*-extras-rpms \
--enable rhel-ha-for-rhel-*-server-rpms
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
并使用它yum install htslib-tools
来安装它。