我正在尝试在 RedHat 服务器上重新安装 bcftools,从 bcftools 版本 1.10 更新到至少 1.14:
cat /etc/redhat-release
给出
Red Hat Enterprise Linux Server release 7.9 (Maipo)
bcftools --version
产量
bcftools 1.10.2
Using htslib 1.10.2
Copyright (C) 2019 Genome Research Ltd.
License Expat: The MIT/Expat license
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
所以我知道它bcftools
已经安装了。
我尝试更新:
user@server:~$ sudo yum update bcftools
Loaded plugins: auto-update-debuginfo, product-id, search-disabled-repos, subscription-manager
Package(s) bcftools available, but not installed.
No packages marked for update
这显然不起作用。
当我尝试更新时
Loaded plugins: auto-update-debuginfo, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package bcftools.x86_64 0:1.9-3.el7 will be installed
--> Processing Dependency: libhts.so.2()(64bit) for package: bcftools-1.9-3.el7.x86_64
--> Running transaction check
---> Package htslib.x86_64 0:1.9-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Installing:
bcftools x86_64 1.9-3.el7 epel 609 k
Installing for dependencies:
htslib x86_64 1.9-5.el7 epel 343 k
Transaction Summary
========================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 953 k
Installed size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): bcftools-1.9-3.el7.x86_64.rpm | 609 kB 00:00:00
(2/2): htslib-1.9-5.el7.x86_64.rpm | 343 kB 00:00:00
--------------------------------------------------------------------------------------------------------
Total 1.3 MB/s | 953 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : htslib-1.9-5.el7.x86_64 1/2
Installing : bcftools-1.9-3.el7.x86_64 2/2
Verifying : bcftools-1.9-3.el7.x86_64 1/2
Verifying : htslib-1.9-5.el7.x86_64 2/2
Installed:
bcftools.x86_64 0:1.9-3.el7
Dependency Installed:
htslib.x86_64 0:1.9-5.el7
Complete!
但随后会显示相同的 bcftools 旧版本 1.10.2。
如何更新 bcftools?
答案1
看来您想要的版本在存储库中尚不可用。也许这可以帮助你:
sudo yum install -y autoconf automake make gcc perl-Data-Dumper zlib-devel bzip2 bzip2-devel xz-devel curl-devel openssl-devel bsdtar wget
wget -qO- https://github.com/samtools/bcftools/releases/download/1.15/bcftools-1.15.tar.bz2 | bsdtar -xvf- -C /tmp/
cd /tmp/bcftools-1.15
make install
ln -s /usr/local/bin/bcftools /bin/bcftools
bcftools --version
我希望它有用。