使用 rpm 包管理器安装包的问题

使用 rpm 包管理器安装包的问题

我目前正在尝试在基于 CentOS 的计算机上安装软件包,该计算机没有 yum,因此我需要使用 rpm 进行安装。我获取了所需的rpm包并尝试像这样安装

$ rpm -Uvh cpp-4.9.3-199192.h1.aarch64.rpm libmpc-1.0.1-3.aarch64.rpm
warning: cpp-4.9.3-199192.h1.aarch64.rpm: Header V4 RSA/SHA1 Signature, key ID 255f3799: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
        installing package libmpc-1.0.1-3.aarch64 needs 200KB on the / filesystem
        installing package cpp-4.9.3-199192.h1.aarch64 needs 15MB on the / filesystem

我查询了这些软件包的安装位置,发现如下:

$ rpm -ql cpp-4.9.3-199192.h1.aarch64.rpm
warning: cpp-4.9.3-199192.h1.aarch64.rpm: Header V4 RSA/SHA1 Signature, key ID 255f3799: NOKEY
/usr/bin/cpp
/usr/lib/cpp
/usr/libexec/gcc
/usr/libexec/gcc/aarch64-linux-gnu
/usr/libexec/gcc/aarch64-linux-gnu/4.9.3
/usr/libexec/gcc/aarch64-linux-gnu/4.9.3/cc1
/usr/share/info/cpp.info.gz
/usr/share/info/cppinternals.info.gz
/usr/share/locale/be/LC_MESSAGES/cpplib.mo
/usr/share/locale/ca/LC_MESSAGES/cpplib.mo
/usr/share/locale/da/LC_MESSAGES/cpplib.mo
/usr/share/locale/de/LC_MESSAGES/cpplib.mo
/usr/share/locale/el/LC_MESSAGES/cpplib.mo
/usr/share/locale/eo/LC_MESSAGES/cpplib.mo
/usr/share/locale/es/LC_MESSAGES/cpplib.mo
/usr/share/locale/fi/LC_MESSAGES/cpplib.mo
/usr/share/locale/fr/LC_MESSAGES/cpplib.mo
/usr/share/locale/id/LC_MESSAGES/cpplib.mo
/usr/share/locale/ja/LC_MESSAGES/cpplib.mo
/usr/share/locale/nl/LC_MESSAGES/cpplib.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cpplib.mo
/usr/share/locale/ru/LC_MESSAGES/cpplib.mo
/usr/share/locale/sr/LC_MESSAGES/cpplib.mo
/usr/share/locale/sv/LC_MESSAGES/cpplib.mo
/usr/share/locale/tr/LC_MESSAGES/cpplib.mo
/usr/share/locale/uk/LC_MESSAGES/cpplib.mo
/usr/share/locale/vi/LC_MESSAGES/cpplib.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cpplib.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cpplib.mo
/usr/share/man/man1/cpp.1.gz

rpm -ql libmpc-1.0.1-3.aarch64.rpm
warning: libmpc-1.0.1-3.aarch64.rpm: Header V4 RSA/SHA1 Signature, key ID 255f3799: NOKEY
/usr/lib64/libmpc.so.3
/usr/lib64/libmpc.so.3.0.0
/usr/share/doc/libmpc-1.0.1
/usr/share/doc/libmpc-1.0.1/COPYING.LESSER
/usr/share/doc/libmpc-1.0.1/NEWS
/usr/share/doc/libmpc-1.0.1/README

但是,即使安装成功后,我也无法在上述位置找到与我的新软件包相关的任何文件。我之前对 CentOS 没有太多经验。非常感谢任何帮助或建议。

[编辑]使用后rpm -Uvh cpp-4.9.3-199192.h1.aarch64.rpm libmpc-1.0.1-3.aarch64.rpm

$ which cpp
/usr/bin/which: no cpp in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
$ ls -l /usr/lib64/libmpc.so.3
ls: cannot access '/usr/lib64/libmpc.so.3': No such file or directory

相关内容