Perlboy"/>

Seekbrain.com

Jump to content.

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

Sorry, the comment form is closed at this time.


Read more

«
»