建立转速

发布于 2024-08-12 23:19:05 字数 149 浏览 10 评论 0原文

是否有一个简单的程序来构建 RPM。如果是,请解释或提供链接.........

我的要求非常简单..

我还有另外两个 RPM,应将其合并为一个 RPM... .

请解释一下过程......

先谢谢............

Is there an easy procedure to build an RPM.If so Please explain or provide the link.........

My requirement is very simple ..

I have two other RPMs which should be combined into one single RPM....

Please explain the process....

Thanks in advance..........

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

与风相奔跑 2024-08-19 23:19:05

构建 RPM 本身相当简单,您只需要运行

rpmbuild -ba <mypackage.spec>

更复杂的任务是创建 .spec 文件,该文件控制 rpm 本身的构建方式。一个很好的解释是Maximum RPM一书,它可以在 rpm 主页上找到。创建 .spec 文件由 这里。根据我自己的经验,构建 .spec 文件并不容易,但也不是太复杂,除非您想要制作特殊的东西。标准./configure &&制作&& make install 通常不太复杂。

Building an RPM itself is rather easy, you just need to run

rpmbuild -ba <mypackage.spec>

The more complex task is creating the .spec file, which controls how the rpm itself is built. A good explanation is the book Maximum RPM, which is available on the rpm homepage. Creating a .spec file is handled here. From my own experience building a .spec file is something that's not easy -- but not too complicated either unless you want to make special things. The standard ./configure && make && make install is usually not too complicated.

柏林苍穹下 2024-08-19 23:19:05

不确定问题是什么;如果你已经有两个 RPM,为什么需要将它们变成 1 rpm?为什么不使用 shell 脚本同时安装它们呢?

RPM 命令将采用多个参数,例如:

rpm -ivh one.rpm two.rpm three.rpm

将安装一个,然后安装两个,然后安装三个。

否则,据我所知,您将必须首先构建软件包,然后将它们构建到 RPM 中,此时您将拥有一个自定义 RPM,每次使用其中一个组件包时都必须手动更新该 RPM变化。恶心。

Not sure what the problem is; if you've already got two RPMs, why do you need to make them into 1 rpm? Why not just use a shell script to install them both at the same time?

The RPM command will take multiple arguments, so for example:

rpm -ivh one.rpm two.rpm three.rpm

Will install one, followed by two, followed by three.

Otherwise, from what I know, you're going to have to build the packages first, and then build them into an RPM, at which point you will have a custom RPM that will have to be manually updated every time one of the component packages changes. Yuck.

独夜无伴 2024-08-19 23:19:05

RPM 创建的基本指南可在以下位置找到:
http://fedoraproject.org/wiki/How_to_create_an_RPM_package

一个非常好的、完整的 RPM 创建指南(由 Fedora 提供)社区)可通过链接获取: http://docs.fedoraproject.org /en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/

这真是太棒了。

顺便说一句,为了直接回答您的问题,您可能需要添加两个包作为另一个包的子包。为此,RPM 规范文件中有一些特定的条目。

您只需为所有三个包创建一个 SPEC 文件

Basic guide for RPM creation is available at:
http://fedoraproject.org/wiki/How_to_create_an_RPM_package

A very good and complete guide for RPM creation (by Fedora community) is available at link: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/

It is is wonderful.

BTW, for straight answer of your question, you might want to add two packages as a subpackage of another package. For that there are some specific entries in RPM spec file.

You need to create only one SPEC file for all three packages

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文