RPM的名称-版本-发布规则是什么? [英] What's the rule for the Name-Version-Release of RPM?

查看:75
本文介绍了RPM的名称-版本-发布规则是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想象一个名为 abc-123-1.x86.rpm 的 RPM,我在其中发现了一个错误.

但我不知道如何命名 new 包.

也许 abc-123-2.x86.rpm?但是如果有一个xyz.rpm依赖于abc-123-1怎么办?

也许 abc-123-1.x86.1.rpm, ...

所以我的问题是RPM 名称-版本-发布的规则是什么?

解决方案

问题在于错误在哪里以及谁修复了它.

rpm 包/文件名的组成部分是 nameversionreleasearchitecture(还有一个 epoch 但只在特殊情况下使用).

如果修复的错误在软件本身中,那么可能会发布该软件的新版本,并且它会有一个新的版本号,因此您可以适当地打包(假设您正在为您的发行版打包新版本的软件)).

如果错误在打包中(或者您没有打包新版本,而是向后移植补丁),那么软件版本不会更改,您无法更改它,因此您可以更改版本.

大多数软件包不应该依赖于另一个软件包的特定版本.(它们可能有最低支持版本,因为它们依赖于包装更改或向后移植的补丁,但这是abc <123-1 之类的要求,不受此版本调整的影响.)>

Fedora(以及 RedHat 和 CentOS)关于此的政策位于 包版本控制.该 wiki 中还提供了更多与包装相关的信息.

Imagine a RPM named abc-123-1.x86.rpm, and I found a bug in it.

But I don't know how to name the new package.

Maybe abc-123-2.x86.rpm? But what if there is a xyz.rpm depends on abc-123-1?

Maybe abc-123-1.x86.1.rpm, ...

So my question is what's the rule for the Name-Version-Release of RPM?

解决方案

The question is where is the bug and who fixed it.

The parts of an rpm package/file name are the name, the version, the release and the architecture (there's also an epoch but that's only used in special circumstances).

If the bug that was fixed was in the software itself then a new release of the software was likely made and it will have a new version number so you package that appropriately (assuming you are packaging new versions of the software for your distribution).

If the bug was in the packaging (or you aren't packaging new versions and you are back-porting the patch) then the software version isn't changing and you can't change that so you change the release instead.

Most packages shouldn't depend on a specific release of another package. (They might have minimum supported versions because they depend on a packaging change or back-ported patch but that's a requirement like abc < 123-1 and isn't affected by this release bump.)

The Fedora (and so RedHat and CentOS) policies about this is at Package Versioning. Much more packaging related information is available from in that wiki also.

这篇关于RPM的名称-版本-发布规则是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆