Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 查找使用我的rpm的模块_Linux_Redhat_Rpm - Fatal编程技术网

Linux 查找使用我的rpm的模块

Linux 查找使用我的rpm的模块,linux,redhat,rpm,Linux,Redhat,Rpm,我的机器上安装了rpm X。我的系统中有几个模块。 我想检查哪些模块正在使用我的rpm X的功能 查找哪些模块需要my rpm X的简单方法是什么?您可以使用以下命令查找属于哪个rpm的模块: [root@monitor01~]#rpm-qf/lib64/ld-2.5.so glibc-2.5-118.el5_10.2 根据您的要求,您需要制作脚本。首先使用lsmod列出已安装的模块,用第一列进行解析,然后找出每个模块的路径并将其提供给上面的查询。rpm-q--whatrequires X用于显

我的机器上安装了rpm X。我的系统中有几个模块。 我想检查哪些模块正在使用我的rpm X的功能


查找哪些模块需要my rpm X的简单方法是什么?

您可以使用以下命令查找属于哪个rpm的模块:

[root@monitor01~]#rpm-qf/lib64/ld-2.5.so

glibc-2.5-118.el5_10.2


根据您的要求,您需要制作脚本。首先使用lsmod列出已安装的模块,用第一列进行解析,然后找出每个模块的路径并将其提供给上面的查询。

rpm-q--whatrequires X
用于显示需要指定功能的软件包。我的情况不同。我在另一个文件夹中有一些使用rpm的二进制文件。我想找出哪些是二进制扫描,您定义了
使用的
含义?例如,如果您的rpm X是一个共享库,并且您想知道哪些二进制文件链接到它,那么您可以使用
ldd | grep libXname
。您甚至可以使用通配符,如
ldd/path/to/some/binary/*
。注意:当您不是指软件包要求时,请不要使用require。这有点令人困惑。