1. [root@uat-zabbix-server ~]# yum provides */lsb_release
    2. Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    3. This system is not registered with an entitlement server. You can use subscription-manager to register.
    4. redhat-lsb-core-4.1-27.el7.i686 : LSB Core module support
    5. Repo : yum-server
    6. Matched from:
    7. Filename : /usr/bin/lsb_release
    8. redhat-lsb-core-4.1-27.el7.x86_64 : LSB Core module support
    9. Repo : yum-server
    10. Matched from:
    11. Filename : /usr/bin/lsb_release
    12. redhat-lsb-core-4.1-27.el7.x86_64 : LSB Core module support
    13. Repo : @yum-server
    14. Matched from:
    15. Filename : /usr/bin/lsb_release
    16. [root@uat-zabbix-server ~]#
    1. [root@uat-zabbix-server ~]# yum install redhat-lsb-core-4.1-27.el7.x86_64 -y

    或者

    1. [root@uat-zabbix-server ~]# yum install redhat-lsb -y
    1. [root@uat-zabbix-server ~]# lsb_release -a
    2. LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
    3. Distributor ID: RedHatEnterpriseServer
    4. Description: Red Hat Enterprise Linux Server release 7.4 (Maipo)
    5. Release: 7.4
    6. Codename: Maipo
    1. [root@uat-zabbix-server ~]# cat /etc/redhat-release
    2. Red Hat Enterprise Linux Server release 7.4 (Maipo)
    3. [root@uat-zabbix-server ~]#