Rhel
無法在 Red Hat 上安裝 bgzip
我正在嘗試在紅帽上安裝 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
和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
?
提供的
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
安裝它。