[root@k8smaster01 ~]# yum install rpm-build -y
Transaction check error:
  file /etc/rpm/macros.ghc-srpm from install of redhat-rpm-config-9.1.0-88.el7.noarch conflicts with file from package epel-release-6-8.noarch
Error Summary

解决办法:
[root@k8smaster01 myyum]# yum erase epel-release -y  #删除已存在的
[root@k8smaster01 ~]# yum install rpm-build -y #安装成功
Installed:
  rpm-build.x86_64 0:4.11.3-40.el7                                                                                                                       

Dependency Installed:
  bzip2.x86_64 0:1.0.6-13.el7                                dwz.x86_64 0:0.11-3.el7                     elfutils.x86_64 0:0.176-2.el7                 
  elfutils-default-yama-scope.noarch 0:0.176-2.el7           gdb.x86_64 0:7.6.1-115.el7                  patch.x86_64 0:2.7.1-11.el7                   
  perl-Thread-Queue.noarch 0:3.02-2.el7                      perl-srpm-macros.noarch 0:1-8.el7           python-srpm-macros.noarch 0:3-32.el7          
  redhat-rpm-config.noarch 0:9.1.0-88.el7                    unzip.x86_64 0:6.0-20.el7                   zip.x86_64 0:3.0-11.el7                       

Dependency Updated:
  bzip2-libs.x86_64 0:1.0.6-13.el7         elfutils-libelf.x86_64 0:0.176-2.el7    elfutils-libs.x86_64 0:0.176-2.el7    rpm.x86_64 0:4.11.3-40.el7   
  rpm-build-libs.x86_64 0:4.11.3-40.el7    rpm-libs.x86_64 0:4.11.3-40.el7         rpm-python.x86_64 0:4.11.3-40.el7    

Complete!
[root@k8smaster01 myyum]#
 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐