- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我想为 Oracle Linux 的发行版构建 OpenCV 的 RPM。我一直在阅读制作 RPM 的各种指南(参见 http://www.ibm.com/developerworks/library/l-rpm1/ ),以及来自 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 文件指定了如何构建/打包您的 rpm。我们使用 rpmbuild 命令构建 rpm。
现在可以使用rpm命令安装/卸载/升级rpm包了。
请不要混淆 rpm、包和 rpm 系统,负责构建 rpm 的引擎
关于linux - RPM 是否需要编译阶段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35136973/
如何检测 RPM 是源 rpm 还是二进制 rpm? 显然我不想依赖文件名。 最佳答案 源 rpm 由 header 中 SOURCEPM 标记的存在定义。如果 rpm 带有 SOURCEPMM 标签
在Linux操作系统中,有一个系统软件包,它的功能类似于Windows里面的“添加/删除程序”,但是功能又比“添加/删除程序”强很多,它就是Red
我正在尝试从一个 RPM 安装中安装多个 RPM。我已将规范文件制作到 %post 部分中,我使用命令安装了另一个 rpm。 %post rm -f /var/lib/rpm/__db.0* r
我正在尝试从一个 RPM 安装中安装多个 RPM。我已将规范文件制作到 %post 部分中,我使用命令安装了另一个 rpm。 %post rm -f /var/lib/rpm/__db.0* r
请指教为什么我找不到我安装的rpm。我尝试通过 rpm -qa | 检查grep 测试(参见安装 rpm 中的示例:)但似乎没有安装 rpm 为什么? 构建 RPM: [root@linux /us
您好,提前感谢任何人可以为这个问题提供的任何答案。 我有一个 RPM,它本质上是一个展开的 WAR 的包装器。在我的服务器上运行 rpm -i myRPM.rpm 这工作得很好,世界上一切都很好。然后
我必须在包含大量 rpm 的目录下执行 rpm -ivh *.rpm。我想忽略一两个特定的 rpm。我该怎么做? 最佳答案 如果他们在文件名中没有空格或换行符(这是我所期望的,对于 rpms),那么最
我正在为 centos 生成 rpm 文件,但是当我尝试在干净的机器上安装它时,它失败了: --> Running transaction check ---> Package grass.x86
如果有的话,设计 RPM 的“正确”方法是什么,以便可以通过 YUM/RPM 并排安装多个版本而不会相互干扰?对于库,正确的答案似乎与 sonames 有关,尽管我找不到任何关于 sonames、符号
正如主题所读,我想知道是否可以在 RPM 规范文件中使所需的包依赖于条件? 例如,如果在安装目标上,请检查 shell 语句,例如主机正在使用绑定(bind)接口(interface) 并且只有当 R
我想将我的 rpm 文件的名称从 oldname-7.x86_64.rpm 更改为 newname-8.x86_64.rpm。我用新名称创建了新的 rpm,但是当我尝试执行 rpm -Uvh newn
我正在尝试构建并签署 RPM。 我在我正在构建的位置创建了我的 .rpmmacro 文件/path/to/macrodir/ 然后我将 --define 与 _topdir 一起使用,指的是/path
我目前正在重命名我的团队正在生产的产品(对变量、服务接口(interface)、类名等进行适当的重构)。对于本练习的 RPM 重命名部分,我被告知使用 obsoletes 标记。我现在处于错误修复阶段
这个问题很容易表现出来: rpm --eval "%define xyz" error: Macro %xyz has empty body 我想获得 patch_level 和 echo_dist
我需要构建一个 RPM,其唯一目的是安装一些字体。我已经阅读了几个关于此的教程,但是每个人似乎都提出了不同的建议,而且我无法找到类似非常基本的设置来做到这一点。 是否可以只引用 %files 中的文件
我正在升级我们的项目 RPM。问题是当我从 projectname-1.0-0 升级到 projectname-1.0-1 时,它首先安装新项目并卸载旧项目,总的来说,这完全删除了我的项目。我在升级时
我只想创建一个 RPM 文件来分发我的 Linux 二进制文件“foobar”,只有几个依赖项。它有一个配置文件/etc/foobar.conf 并应安装在/usr/bin/foobar 中。 不幸的
我正在尝试记录我的 rpm 完成的事件,但无法找到方法来执行此操作。我正在寻找某种方法来通过规范文件本身来完成此操作。如果我的 rpm 执行 5 个步骤,我需要一种方法将这些步骤及其结果记录到日志中。
如何在 RPM 规范中定义变量?我要在 RPM 中创建 14 个文件夹,并且是通过以下命令创建的: mkdir -p /opt/{Folder,Names,Are,Pretty,Cumbersome}
机器 1 #uname -r Machine 1:3.2.45-0.6.wd.561.41.269.metal1.x86_64 #rpmbuild --version RPM version 4.8.
我是一名优秀的程序员,十分优秀!