系統版本:CentOS Linux release 7.6.1810 (Core)
- 欲使用yum groupinstall安裝群包,發生以下問題No packages in any requested group available to install or update
[root@localhost yum.repos.d]# yum groupinstall "Development Tools"
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Warning: Group development 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
- 發現redhat官網有寫到,需要再加參數,--setopt=group_package_types=mandatory,default,optional,才能正常安裝
[root@localhost yum.repos.d]# yum groupinstall "Development Tools" --setopt=group_package_types=mandatory,default,optional
systemtap-devel x86_64 4.0-13.el7 base 2.2 M
systemtap-runtime x86_64 4.0-13.el7 base 444 k
zlib x86_64 1.2.7-19.el7_9 updates 90 k
Transaction Summary
=========================================================================
Install 38 Packages (+280 Dependent packages)
Upgrade ( 29 Dependent packages)
Total download size: 400 M
Is this ok [y/d/N]:
轉載至: https://access.redhat.com/solutions/1310043