例:查看电脑中安装了哪些包括“compat”串的包
[timesten@lxredhat ~]$ rpm -q -a | grep compat
rarian-compat-0.8.1-5.1.el6.x86_64
compat-libstdc++-33-3.2.3-47.3.i386
compat-gcc-34-3.4.6-19.el6.x86_64
geronimo-specs-compat-1.0-3.4.M2.el6.noarch
nss_compat_ossl-0.9.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-61.x86_64
compat-gcc-34-g77-3.4.6-19.el6.x86_64
lpg-java-compat-1.1.0-4.1.el6.noarch
compat-libf2c-34-3.4.6-19.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
compat-gcc-34-c++-3.4.6-19.el6.x86_64
删除compat-gcc-34-c++-3.4.6-19.el6.x86_64包的命令
rpm -e compat-gcc-34-c++-3.4.6-19.el6.x86_64 --nodeps