RPM 是否需要编译阶段?
Does an RPM require a compile phase?
我想为 Oracle Linux 的发行版构建 OpenCV 的 RPM。我一直在阅读制作 RPM 的各种指南(参见 http://www.ibm.com/developerworks/library/l-rpm1/), and from Fedora's documentation,我阅读了以下内容:
The RPM system will automate the steps to create an application, as
long as you configure the RPM with the proper steps, such as which
make targets to run. Unfortunately, configuring the proper steps is
not always easy. So before trying to make an RPM, you need to figure
out how to build the application or library you plan to package into
an RPM. Once you have figured out how to build the application or
library, you can set up a reproducible build. The RPM system can then
automate this build.
据我所知,RPM 不会安装预构建的库和二进制文件,而是从源代码构建它们。但是,我的经验告诉我,当我下载软件包时,我只是在安装预构建的二进制文件。这是正确的吗?
有两个不同的东西。您可以使用
打包应用程序
rpm system using a spec file
spec 文件是创建应用程序的秘诀。一旦你有一个规格文件。您可以使用它生成 src rpm 或二进制 rpm。二进制 rpm 是您所指的 rpm。
spec 文件指定如何 build/package 您的 rpm。我们使用 rpmbuild 命令构建 rpm。
现在可以使用rpm 命令install/uninstall/upgrade rpm 包了。
请不要混淆 rpm、包和 rpm 系统,负责构建 rpm 的引擎
我想为 Oracle Linux 的发行版构建 OpenCV 的 RPM。我一直在阅读制作 RPM 的各种指南(参见 http://www.ibm.com/developerworks/library/l-rpm1/), and from Fedora's documentation,我阅读了以下内容:
The RPM system will automate the steps to create an application, as long as you configure the RPM with the proper steps, such as which make targets to run. Unfortunately, configuring the proper steps is not always easy. So before trying to make an RPM, you need to figure out how to build the application or library you plan to package into an RPM. Once you have figured out how to build the application or library, you can set up a reproducible build. The RPM system can then automate this build.
据我所知,RPM 不会安装预构建的库和二进制文件,而是从源代码构建它们。但是,我的经验告诉我,当我下载软件包时,我只是在安装预构建的二进制文件。这是正确的吗?
有两个不同的东西。您可以使用
打包应用程序rpm system using a spec file
spec 文件是创建应用程序的秘诀。一旦你有一个规格文件。您可以使用它生成 src rpm 或二进制 rpm。二进制 rpm 是您所指的 rpm。
spec 文件指定如何 build/package 您的 rpm。我们使用 rpmbuild 命令构建 rpm。
现在可以使用rpm 命令install/uninstall/upgrade rpm 包了。
请不要混淆 rpm、包和 rpm 系统,负责构建 rpm 的引擎