yum版本号前有:冒号 指的是依赖版本号,默认0不显示
官方介绍:http://rpm-packaging-guide.github.io/#epoch
1 2 3 4 5 6 | [root@CentOs7 ~] # yum list docker --showduplicates 已加载插件:fastestmirror, priorities Loading mirror speeds from cached hostfile 28 packages excluded due to repository priority protections 可安装的软件包 docker.x86_64 2:1.12.6-55.gitc4618fb.el7.centos c7-media |
看到版本号前是2:1.12.6,1.12.6是版本号,是常见的,但是2:是什么意思,google了一下,发现这个是rpm包的命名规范,即使不写也会默认为0,是指的依赖版本号
中文RPM包信息: 看到 "时期 :2"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [root@CentOs7 ~] # yum info docker-1.12.6 已加载插件:fastestmirror, priorities Loading mirror speeds from cached hostfile 28 packages excluded due to repository priority protections 可安装的软件包 名称 :docker 架构 :x86_64 时期 :2 版本 :1.12.6 发布 :55.gitc4618fb.el7.centos 大小 :15 M 源 :c7-media_CentOS 简介 : Automates deployment of containerized applications 网址 :https: //github .com /docker/docker 协议 : ASL 2.0 描述 : Docker is an open - source engine that automates the deployment of any : application as a lightweight, portable, self-sufficient container that will : run virtually anywhere. : : Docker containers can encapsulate any payload, and will run consistently on : and between virtually any server. The same container that a developer builds : and tests on a laptop will run at scale, in production*, on VMs, bare-metal : servers, OpenStack clusters, public instances, or combinations of the above. |
英文RPM包信息:对应的的是Epoch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [root@CentOs7 yum.repos.d] # yum info docker-1.12.6 Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile 28 packages excluded due to repository priority protections Available Packages Name : docker Arch : x86_64 Epoch : 2 Version : 1.12.6 Release : 55.gitc4618fb.el7.centos Size : 15 M Repo : c7-media_CentOS Summary : Automates deployment of containerized applications URL : https: //github .com /docker/docker License : ASL 2.0 Description : Docker is an open - source engine that automates the deployment of any : application as a lightweight, portable, self-sufficient container that will : run virtually anywhere. : : Docker containers can encapsulate any payload, and will run consistently on : and between virtually any server. The same container that a developer builds : and tests on a laptop will run at scale, in production*, on VMs, bare-metal : servers, OpenStack clusters, public instances, or combinations of the above. |
参考:
http://unix.stackexchange.com/questions/543384/what-is-the-meaning-of-1-in-the-version-of-a-yum-package
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!