1400  
查询码:00000038
CentOS中使用yum列出软件包支持的所有版本
作者: wyasw 于 2020年03月30日 发布在分类 / Linux / 系统相关 下,并于 2020年03月30日 编辑
yum

CentOS中使用yum列出软件包支持的所有版本

一般情况下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


 推荐知识

 历史版本

修改日期 修改人 备注
2020-03-30 16:35:22[当前版本] wyasw 格式调整
2020-03-30 16:34:34 wyasw 格式调整
2020-03-30 16:32:44 wyasw 创建版本

  目录
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号