This shows you the differences between two versions of the page.
linux:yum:searchfile [2015/04/29 07:01] – angelegt js | linux:yum:searchfile [2022/03/16 10:51] (current) – js | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Search file in rpm package ====== | ====== Search file in rpm package ====== | ||
+ | ===== repoquery ===== | ||
If you want to find from which rpm package a file is installed, try following command: | If you want to find from which rpm package a file is installed, try following command: | ||
<code bash> | <code bash> | ||
Line 15: | Line 16: | ||
perl-4: | perl-4: | ||
perl-4: | perl-4: | ||
+ | |||
+ | ===== rpm ===== | ||
+ | <code bash>rpm -qf < | ||
+ | |||
+ | Example: | ||
+ | <code bash>rpm -qf / | ||
+ | isomd5sum-1.0.10-5.el7.x86_64 | ||
+ | </ |