Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

CentOS

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.

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest