Loading...

Remove multiple RPMs

A small recipe how to remove multiple applications with yum.

Query against the package database with your search term

tan@omega:~> rpm -qa | grep p2fear
p2fear_remote_1-4.18.5-695.noarch
p2fear_online_register_1-4.18.5-1933.noarch
p2fear_mocks_1-4.18.5-1789.noarch
p2fear_online_type_a_1-4.18.5-1975.noarch
p2fear_healthcheck-4.18.5-414.noarch
p2fear_online_type_c_1-4.18.5-1947.noarch
p2fear_batch_1-4.18.5-765.noarch

Use the output as input for yum

tan@omega:~> sudo yum remove $(rpm -qa | grep p2fear) -y
rpm