Centos7 yum groupinstall 报错的解决办法

Centos7 yum groupinstall  

 

Error There is no installed groups file

解决办法 

  • centos7
  • yum

问题

  • yum groupinstall "Office Suite and Productivity" is failing on Red Hat Enterprise Linux 7 with error There is no installed groups file
  • yum groupinstall "Office Suite and Productivity
    Loaded plugins: langpacks, product-id, subscription-manager
    There is no installed groups file.
    Maybe run: yum groups mark convert (see man yum)
    Warning: Group office-suite does not have any packages to install.
    Maybe run: yum groups mark install (see man yum)
    No packages in any requested group available to install or update

解决方法,在命令后面加一个参数 --setopt=group_package_types=mandatory,default,optional

yum groupinstall "Office Suite and Productivity" --setopt=group_package_types=mandatory,default,optional

原因
在Red Hat Enterprise Linux 7中,yum已发生变化。“Office套件和工具”软件包组仅包含默认情况下未安装的可选软件包。所以我们需要传递选项来安装可选包!其他 groupinstall 不成功的也是一个道理。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章