gpt4 book ai didi

linux - RPM + rpm 安装后无法找到 rpm

转载 作者:太空狗 更新时间:2023-10-29 11:34:28 28 4
gpt4 key购买 nike

请指教为什么我找不到我安装的rpm。我尝试通过 rpm -qa | 检查grep 测试(参见安装 rpm 中的示例:)但似乎没有安装 rpm 为什么?

构建 RPM:

 [root@linux /usr/src/redhat/SOURCES]#  rpm -ba   /usr/src/redhat/SPECS/my_spec.spec
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/test.sh
Wrote: /root/rpmbuild/SRPMS/test.sh-6.2-2.src.rpm

安装rpm:

   [root@linux /usr/src/redhat/RPMS/i386]# rpm -Uvh  /root/rpmbuild/SRPMS/test.sh-6.2-2.src.rpm 
1:test.sh ########################################### [100%]

[root@linux /usr/src/redhat/RPMS/i386]# rpm -qa | grep test

no results ?

规范文件:

  Summary: An example tool. To show a simple rpm build of the tool.
Name: test.sh
Version: 6.2
Release: 2
Source:/root/test.sh
Group: Development/Debuggers
BuildRoot:/var/tmp/test.sh
License: OtherLicense
%description

最佳答案

您安装了源 rpm 而不是实际的 rpm:

rpm -Uvh /root/rpmbuild/RPMS/test.sh-6.2-2.rpm

关于linux - RPM + rpm 安装后无法找到 rpm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5639692/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com