There may be times when you would like to remove a particular PHP version via the command line.
To remove all PHP packages for a specific PHP version, use this command, where
xx represents the version to remove.
For EA4 packages:
yum remove ea-phpxx*
For alt-php (CloudLinux) packages:
yum remove alt-phpxx*
For example, to remove all EA4 PHP packages for PHP 5.5, run this command:
yum remove ea-php55*
This removes the primary ea-php55 package and all of its associated packages.