yum 安装指定软件版本的包

下面是安装,yum 安装指定版本的 软件包
# 先搜索一下可安装的软件包
yum --showduplicates list  [包名]  | expand   
yum --showduplicates list MariaDB-server | expand  #例
# 安装需要的指定版本包
yum -y install [服务名]-[版本号]  #注意服务名和版本号之间的 “ - ” 不是下划线
yum -y install MariaDB-server-10.5.3 # 例
posted @ 2020-06-21 01:59  idlestation  阅读(1775)  评论(0编辑  收藏  举报