0

I am a non-root user on a shared centos7 server host.I try to install some softwares on this machine according to the method in the link. How can I check whether some dependencies are lack before installation according to the method in above link.

echo
  • 31

1 Answers1

3
rpm -ivh 1.rpm 2.rpm 3.rpm

Will report all the missing dependencies. If everything is satisfied it will complain about missing root privileges.

  • I tried this command'rpm -ivh git-2.39.0-2.1.src.rpm' to install package git-2.39.0-2.1.src.rpm. However, the output is: warning: git-2.39.0-2.1.src.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY \ Updating / installing... \ 1:git-2.39.0-2.1 ################################# [100%]\ It didn't point out any packages missing or missing root privileges. – echo Jan 16 '23 at 10:21
  • 2
    src.rpm is a source package which needs to be rebuilt (compiled). It will "install" because it will be actually just unpacked into ~/rpmbuild. – Artem S. Tashkinov Jan 16 '23 at 10:55
  • yep, and as source package, it has no dependencies – building it has. But that's a different story – Marcus Müller Jan 16 '23 at 11:06