Jump To Close Expand all Collapse all Table of contents 打包指南 使开源包含更多 1. Software Collections 简介 Expand section "1. Software Collections 简介" Collapse section "1. Software Collections 简介" 1.1. 为什么使用 RPM 的软件包软件? 1.2. 什么是 Software Collections? 1.3. 启用对 Software Collections 的支持 1.4. 安装 Software Collection 1.5. 列出已安装的 Software Collections 1.6. 启用 Software Collection Expand section "1.6. 启用 Software Collection" Collapse section "1.6. 启用 Software Collection" 1.6.1. 直接运行应用程序 1.6.2. 运行启用了多个 Software Collections 的 Shell 1.6.3. 运行存储在文件中的命令 1.7. 列出启用的 Software Collections 1.8. 卸载 Software Collection 2. 打包 Software Collections Expand section "2. 打包 Software Collections" Collapse section "2. 打包 Software Collections" 2.1. 创建自己的 Software Collections 2.2. 文件系统层次结构 2.3. Software Collection Root 目录 2.4. Software Collection Prefix 2.5. Software Collection 软件包名称 2.6. Software Collection Scriptlets 2.7. 软件包布局 Expand section "2.7. 软件包布局" Collapse section "2.7. 软件包布局" 2.7.1. Metapackage 2.7.2. 创建 Metapackage 2.8. Software Collection Macros Expand section "2.8. Software Collection Macros" Collapse section "2.8. Software Collection Macros" 2.8.1. 特定于 Software Collection 的宏 2.8.2. 宏不特定于软件集合 2.8.3. nfsmountable Macro 2.9. 常用的路径 Redefinitions Expand section "2.9. 常用的路径 Redefinitions" Collapse section "2.9. 常用的路径 Redefinitions" 2.9.1. 特定于语言的路径 Redefinitions 2.9.2. 其他路径 Redefinitions 2.10. 转换一个一致的 Spec 文件 Expand section "2.10. 转换一个一致的 Spec 文件" Collapse section "2.10. 转换一个一致的 Spec 文件" 2.10.1. 转换的 Spec 文件示例 2.10.2. 转换标签和 Macro 定义 2.10.3. 转换子软件包 2.10.4. 转换 RPM 脚本 2.10.5. Software Collection Automatic Provides and Requires and Filtering Support 2.10.6. Software Collection Macro 文件支持 2.10.7. Software Collection Shebang 支持 2.10.8. 在另一软件集合上制作 Software Collection Depend 2.11. 卸载所有 Software Collection 目录 2.12. 构建 Software Collection Expand section "2.12. 构建 Software Collection" Collapse section "2.12. 构建 Software Collection" 2.12.1. 在没有构建子软件包的情况下重建 Software Collection 2.12.2. 避免 debuginfo 文件冲突 3. 高级主题 Expand section "3. 高级主题" Collapse section "3. 高级主题" 3.1. 通过 NFS 使用 Software Collections Expand section "3.1. 通过 NFS 使用 Software Collections" Collapse section "3.1. 通过 NFS 使用 Software Collections" 3.1.1. 更改了目录结构和文件所有权 3.1.2. 注册和取消注册 Software Collections Expand section "3.1.2. 注册和取消注册 Software Collections" Collapse section "3.1.2. 注册和取消注册 Software Collections" 3.1.2.1. 在 Software Collection Metapackage 中使用(de) register Scriptlets 3.2. 将 Software Collection Scriptlet 转换为环境模块 3.3. 提供 syspaths Subpackages Expand section "3.3. 提供 syspaths Subpackages" Collapse section "3.3. 提供 syspaths Subpackages" 3.3.1. 命名 syspaths Subpackages 3.3.2. syspaths Subpackages 中包含的文件 3.3.3. syspaths Wrappers 的限制 3.3.4. syspaths 子软件包中的符号链接 3.3.5. 没有前缀的服务 3.4. 在 Software Collections 中管理服务 Expand section "3.4. 在 Software Collections 中管理服务" Collapse section "3.4. 在 Software Collections 中管理服务" 3.4.1. 为服务配置环境 3.5. Software Collection Library 支持 Expand section "3.5. Software Collection Library 支持" Collapse section "3.5. Software Collection Library 支持" 3.5.1. 使用 Software Collection 之外的库 3.5.2. 使用 Software Collection Name 为 Library Major soname 前缀 3.5.3. Red Hat Enterprise Linux 7 中的 Software Collection Library 支持 3.6. Software Collection .pc 文件支持 3.7. Software Collection MANPATH 支持 3.8. Software Collection cronjob 支持 3.9. Software Collection 日志文件支持 3.10. Software Collection logrotate 支持 3.11. 软件集合 /var/run/ 文件支持 3.12. Software Collection Lock 文件支持 Expand section "3.12. Software Collection Lock 文件支持" Collapse section "3.12. Software Collection Lock 文件支持" 3.12.1. Software Collection SysV init 锁定文件支持 3.13. 软件集合配置文件支持 3.14. Software Collection 内核模块支持 3.15. Software Collection SELinux 支持 Expand section "3.15. Software Collection SELinux 支持" Collapse section "3.15. Software Collection SELinux 支持" 3.15.1. Red Hat Enterprise Linux 7 中的 SELinux 支持 3.16. Red Hat Enterprise Linux 6 和 7 之间的区别 Expand section "3.16. Red Hat Enterprise Linux 6 和 7 之间的区别" Collapse section "3.16. Red Hat Enterprise Linux 6 和 7 之间的区别" 3.16.1. %license Macro 3.16.2. 缺少运行时子软件包依赖项 3.16.3. scl-package ()provides 4. 扩展 Red Hat Software Collections Expand section "4. 扩展 Red Hat Software Collections" Collapse section "4. 扩展 Red Hat Software Collections" 4.1. 提供 scldevel 子软件包 Expand section "4.1. 提供 scldevel 子软件包" Collapse section "4.1. 提供 scldevel 子软件包" 4.1.1. 创建 scldevel 子软件包 4.1.2. 在依赖软件集合中使用 scldevel 子软件包 4.2. 扩展 python27 和 rh-python35 Software Collections Expand section "4.2. 扩展 python27 和 rh-python35 Software Collections" Collapse section "4.2. 扩展 python27 和 rh-python35 Software Collections" 4.2.1. vt191 Software Collection 4.2.2. python-versiontools 软件包 4.2.3. 构建 vt191 Software Collection 4.2.4. 测试 vt191 Software Collection 4.3. 扩展 rh-ruby23 软件集合 Expand section "4.3. 扩展 rh-ruby23 软件集合" Collapse section "4.3. 扩展 rh-ruby23 软件集合" 4.3.1. rh-ror42 Software Collection 4.3.2. rh-ror42-rubygem-bcrypt 软件包 4.3.3. 构建 rh-ror42 Software Collection 4.3.4. 测试 rh-ror42 Software Collection 4.4. 扩展 rh-perl524 Software Collection Expand section "4.4. 扩展 rh-perl524 Software Collection" Collapse section "4.4. 扩展 rh-perl524 Software Collection" 4.4.1. h2m144 Software Collection 4.4.2. help2man 软件包 4.4.3. 构建 h2m144 Software Collection 4.4.4. 测试 h2m144 Software Collection 5. Software Collections 故障排除 Expand section "5. Software Collections 故障排除" Collapse section "5. Software Collections 故障排除" 5.1. error: line XX: Unknown tag: %scl_package software_collection_name 5.2. SCL 命令不存在 5.3. 无法打开 /etc/scl/prefixes/software_collection_name 5.4. scl_source: 命令未找到 A. 获取更多信息 Expand section "A. 获取更多信息" Collapse section "A. 获取更多信息" A.1. Red Hat Developers A.2. 安装的文档 A.3. 访问红帽文档 B. 修订历史记录 Expand section "B. 修订历史记录" Collapse section "B. 修订历史记录" B.1. 致谢 法律通告 Settings Close Language: 简体中文 日本語 English Language: 简体中文 日本語 English Format: Multi-page Single-page Format: Multi-page Single-page Language and Page Formatting Options Language: 简体中文 日本語 English Language: 简体中文 日本語 English Format: Multi-page Single-page Format: Multi-page Single-page 打包指南 Red Hat Software Collections 3为 Red Hat Enterprise Linux 打包 Software Collections 的指南 Petr KovářRed Hat Customer Content Servicespkovar@redhat.com法律通告摘要 打包指南介绍了 Software Collections 的解释以及如何构建和打包它们。熟悉 RPM 软件包的软件和系统管理员(但对 Software Collections 概念有新功能的新知识)可以使用本指南来开始使用 Software Collections。 Next