rpm 不支持通配符,可以使用 xargs来接收多个变量
示例,一次性卸载所有 openjdk相关的rpm包:
rpm -qa | grep openjdk | xargs rpm -e --nodeps