Seekbrain.com

Brain Seeking at it’s Best

Code Snippet

Filed under: Software — Perlboy at 10:29 am on Saturday, February 18, 2006

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

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>