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 不成功的也是一個道理。