The problem of “no packages” in centos7

“No packages in any requested group available to install or update” in centos7

Using Yum to install X-Windows today, the following error was reported:

sudo  yum groups install "X Window System"

Loading mirror speeds from cached hostfile
 * base: mirrors.shu.edu.cn
 * epel: mirror.dmmlabs.jp
 * extras: mirrors.cn99.com
 * updates: mirrors.cn99.com
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

It can’t be installed. It’s invalid. The command is correct. Go to the official website to find out the reason. You can see why Yum groupinstall “package group name” is failing on RHEL 7 with error “there is no installed groups file” on the official website, which exactly describes this problem.

It turns out that after 7, the default options are not installed, so you need to add the default items yourself. The solution is: Yum groupinstall "office suite and productivity" -- setopt = group_ package_ types=mandatory,default,optional

Add — setopt = group after_ package_ Types = mandatory, default, optional

sudo  yum groupinstall "X Window System"  --setopt=group_package_types=mandatory,default,optional

Similar Posts: