我正在运行一个 yum 查询
yum group info 'X Window System'
其中输出如下
yum group info 'X Window System'
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.vanehost.com
* extras: mirror.vanehost.com
* updates: mirror.vanehost.com
Group: X Window System
Group-Id: x11
Description: X Window System Support.
Mandatory Packages:
-glx-utils
-initial-setup-gui
=mesa-dri-drivers
=plymouth-system-theme
=spice-vdagent
+xorg-x11-drivers
=xorg-x11-server-Xorg
=xorg-x11-utils
=xorg-x11-xauth
=xorg-x11-xinit
=xvattr
Optional Packages:
mesa-libGLES
tigervnc-server
wayland-protocols-devel
xorg-x11-drv-evdev
xorg-x11-drv-keyboard
xorg-x11-drv-libinput
xorg-x11-drv-mouse
xorg-x11-drv-openchrome
但是,当我对此运行 grep 以过滤掉以 - 或 + 开头的行时
yum group info 'X Window System' | grep -E "^[-+]"
我得到一个空白输出。有人可以让我知道我哪里出错了吗?
这些行不以
+
or-
开头,它们以空格开头。尝试