I need to upgrade php from 5.3 to 5.4. I've installed it with rpm. I want clean install: delete all 5.3 packages, and install all necessary 5.4. Here is the command to see all installed packages:
rpm -qa |grep php
It prints out a list of packages, and I want to remove all them with:
rpm -e *pakage.name*
Can I iterate over all matches in grep results and use each match in:
rpm -e *grep.match*
rpm -qa
does not needgrep
to be invoked. It accepts globbing as inrpm qa *php*
. Also useyum
instead as it will remove / reinstall necessary libraries – Valentin Bajrami Apr 14 '14 at 19:39