How to downgrade RPM Package using YUM?
1) Check Already Installed RPM and Required RPM
Following command will check which rpm version is installed.
rpm -qa | grep php
2) Install YUM Plugin
Issue following command to install yum-allowdowngrade plugin
1 yum -y install yum-allowdowngrade
3) Downgrade RPM Install
First you should be sure what rpm’s you are going to downgrade. For my list I will using already install PHP rpm package name with downgrade argument, which let yum to automatically use the lower version to install and remove the current version of PHP.
1 yum downgrade php-dba php-soap php-ldap php-mysql php-mcrypt php-common php-cli php-gd php-odbc php-xmlrpc php-snmp php-bcmath php-imap- php-devel php-pdo php php-pgsql php-pgsql php-mbstring php-xml
Which was than verified using following commands
1 rpm -qa | grep php
shows install php rpm with version, additionally you can use php command with version option
1 php -v
If you have any question please comment.