开发者

rpm complaining about /bin/su

I need to install a vendor package onto a non-default directory (say /opt). By default, package gets installed in /usr/local/bin directory.

If I use command rpm -ivh package.x86_64.rpm --root /opt I get error message 开发者_StackOverflow/bin/sh is needed by package.x86_64. After doing Google, my understanding is that it happens because rpm is looking for dependencies in /opt directory. Is that true?

Given that I don't have vendor SPEC file, is it possible to fix this problem somehow?


I think you want the rpm option --prefix, not --root. --prefix will install into a different root directory for relocatable rpms, whereas --root uses the path at --root "for all operations" (from the man page) even dependency checks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜