Rhel

無法在 Red Hat 上安裝 bgzip

  • May 19, 2022

我正在嘗試在紅帽上安裝 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了幾乎相同的響應。

我已經完成了yumdnf

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

提供的htslib-tools軟體包bgzipEPEL中適用於 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安裝它。

引用自:https://unix.stackexchange.com/questions/703177