I need to downgrade php on a server and found the command below. Something seems to be wrong with the syntax.
yum downgrade $(rpm -qa --qf "%{NAME} " | \
grep -v ioncube | grep ^php | awk '{print $1"-5.2.17"}')
I get the following error message:
Error: Need to pass a list of pkgs to downgrade
usage: yum [options] COMMAND
Best Answer
I think you are making the command line far too complicated:
I don't think that is going to get you what you want though.