修改日期 | 修改人 | 备注 |
2020-03-30 16:35:22[当前版本] | wyasw | 格式调整 |
2020-03-30 16:34:34 | wyasw | 格式调整 |
2020-03-30 16:32:44 | wyasw | 创建版本 |
一般情况下yum list只会列出最新版本,以下使用php为例,列出其支持的所有可安装版本:
yum list php --showduplicates | sort -r
[root@VM_0_9_centos vhost]# yum list php --showduplicates | sort -r Repository epel is listed more than once in the configuration 已加载插件:fastestmirror, langpacks 可安装的软件包 * webtatic: uk.repo.webtatic.com * updates: mirrors.aliyun.com php.x86_64 5.4.16-46.el7 base php.x86_64 5.4.16-46.1.el7_7 updates Loading mirror speeds from cached hostfile * extras: mirrors.aliyun.com * base: mirrors.aliyun.com
[root@VM_0_9_centos vhost]# yum list php --showduplicates | sort -r Repository epel is listed more than once in the configuration 已加载插件:fastestmirror, langpacks 可安装的软件包 * webtatic: uk.repo.webtatic.com * updates: mirrors.aliyun.com php.x86_64 5.4.16-46.el7 base php.x86_64 5.4.16-46.1.el7_7 updates Loading mirror speeds from cached hostfile * extras: mirrors.aliyun.com * base: mirrors.aliyun.com