多体系结构二进制rpm和Noarch [英] Multi-architectural binary rpm and the noarch

查看:359
本文介绍了多体系结构二进制rpm和Noarch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个(32位和64位)编译软件版本,我希望将它们打包成一个二进制RPM.我想知道'noarch' target 是否适合此目的,或者有更好的选择?我看到的有关"noarch"的唯一问题是,在软件包中包含i386和x86_64二进制文件并不会使其与体系结构无关,而应该使用哪个"noarch".

I have two (32-bit and 64-bit) versions of a compiled software which I would like to package into ONE binary RPM. I am wondering if 'noarch' target is suitable for this purpose or there are better alternatives? The only issue with 'noarch' that I see is that having i386 and x86_64 binaries in the package doesn't make it architecture-independent which 'noarch' is supposed to be used for.

推荐答案

我认为不可能有一个支持两种体系结构的二进制RPM.您必须生成2个RPM.如您所说,.noarch用于与体系结构无关的RPM,例如可以在任何体系结构上运行的脚本.

I don't think it's possible to have one binary RPM supporting two architectures. You have to generate 2 RPMs. As you say, the .noarch is for architecture independent RPMs, such a scripts, which can be run on any architecture.

我想您可以构建一个包含两个二进制文件(名称不同)的RPM,但这可能违反包装指南,因此我不建议这样做.

I guess you could build one RPM containing the two binaries (with different names), but this probably goes against the packaging guidelines, so I wouldn't recommend it.

这篇关于多体系结构二进制rpm和Noarch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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