Redhat

無法在 RedHat Enterprise Linux Server 7 上安裝 unzip

  • December 9, 2019

作業系統版本:

[root@node1 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.7 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.7"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.7 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.7:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.7"

嘗試使用 RPM 安裝 EPEL:

[root@node1 ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Preparing...                          ################################# [100%]
   package epel-release-7-12.noarch is already installed

檢查重發

[root@node1 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos
repo id                                                   repo name                                                                                    status
epel/x86_64                                               Extra Packages for Enterprise Linux 7 - x86_64                                               13,492
repolist: 13,492

安裝解壓

[root@node1 ~]# yum install unzip
Loaded plugins: product-id, search-disabled-repos
No package unzip available.
Error: Nothing to do

這也行不通,同樣的消息:

[root@node1 ~]# yum install unzip --enablerepo=epel

檢查此主機是否具有有效的 RHEL 訂閱。unzip 已經被 Red Hat 打包很久了。

引用自:https://serverfault.com/questions/994844