首页 文章

rpm - 如何在创建包时告诉rpm在哪里安装文件?

提问于
浏览
0

在创建rpm包时,如何告诉rpm将文件安装到特定目录?我've been googling around for this, and read a few IBM Developer Works articles, but I can't找到有关如何在spec文件中指定应安装rpm文件的信息 . 这真是令人困惑,因为我看到buildroot作为代理...它's packing up the files using % as the root directory. In other words, when I view the files in my rpm with ' rpm -qlp',我看/ lib /,/ share /,/ bin /等作为文件位置,而不是/ my / correct / path / lib或/ my / correct / path / bin / * .

1 回答

  • 1

    在问题中

    它使用%作为根目录来打包文件 .

    如果您的 %files 部分包含使用 %{buildroot} 的路径名,则会发生这种情况 . 它应该只使用"actual install location" .

相关问题