Code Snippet

Command to find all PHP rpms and print on one line:

rpm -qa | grep ‘^php-‘ | perl -pe ‘s/\n/ /g;’

Combined command to find all PHP rpms and remove them:

rpm -e `rpm -qa | grep ‘^php-‘ | perl -pe ‘s/\n/ /g;’`

Have fun!

Stuart