Rhel
在 RedHat 上更新/重新安裝包失敗
我正在嘗試在 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?
看起來您想要的版本在儲存庫中尚不可用。也許這可以幫助你:
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
我希望它有用。