centos8 测地卸载php5.6 与卸载php7

centos8 yum php 默认安装 php7.1.2

我想卸载php7 ,安装php5.6

yum remove php 无法彻底卸载干净。必须强制删除,使用下面命令查看全部php软件包

rpm -qa|grep php,然后安装指定顺序卸载

卸载php7.X

[root@xxx php-memcached]# rpm -qa | grep php
php70w-common-7.0.33-1.w7.x86_64
php70w-devel-7.0.33-1.w7.x86_64
php70w-7.0.33-1.w7.x86_64
php70w-cli-7.0.33-1.w7.x86_64

一个一个卸载

rpm -e php70w-7.0.33-1.w7.x86_64
rpm -e php70w-devel-7.0.33-1.w7.x86_64
rpm -e php70w-cli-7.0.33-1.w7.x86_64
rpm -e php70w-common-7.0.33-1.w7.x86_64

 

卸载php5.6

rpm -e php-fpm-5.3.3-22.el6.x86_64
rpm-e php-pdo-5.3.3-22.el6.x86_64
rpm -e php-pear-1.9.4-4.el6.noarch
rpm-e php-cli-5.3.3-22.el6.x86_64
rpm -e php-5.3.3-22.el6.x86_64
rpm-e php-xml-5.3.3-22.el6.x86_64
rpm -e php-gd-5.3.3-22.el6.x86_64
rpm-e php-common-5.3.3-22.el6.x86_64

当然,两个版本文件都可以保存

centos7.x安装多个php版本,php5.6和php7.3区别https://blog.csdn.net/gusijin/article/details/97008105

 

posted @ 2019-12-29 13:27  zhoulujun  阅读(2620)  评论(0编辑  收藏  举报