Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:yum:searchfile [2015/04/29 07:01] – angelegt jslinux: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>repoquery -f <path/filename></code> <code bash>repoquery -f <path/filename></code>
Line 15: Line 16:
 perl-4:5.8.8-43.el5_11.x86_64 perl-4:5.8.8-43.el5_11.x86_64
 perl-4:5.8.8-43.el5_11.x86_64</code> perl-4:5.8.8-43.el5_11.x86_64</code>
 +
 +===== rpm =====
 +<code bash>rpm -qf <file></code>
 +
 +Example:
 +<code bash>rpm -qf /usr/bin/implantisomd5
 +isomd5sum-1.0.10-5.el7.x86_64
 +</code>