Commit 39e2fc75 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo Committed by Tomáš Szaniszlo
Browse files

New tip: Package/file "DB" search for RHEL-based distros

parent b0979b8c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -246,6 +246,20 @@ filenames:

- - -

**Package/file "DB" search for RHEL-based distros:**

    # list files provided by $PACKAGE_NAME
    dnf repoquery -l $PACKAGE_NAME
    # list packages providing $FILE_PATH
    dnf whatprovides $FILE_PATH

If the package/file is installed/present, using `rpm` is much faster:

    rpm -ql $PACKAGE_NAME
    rpm -qf $FILE_PATH

- - -

**Other cheat sheets**

* Markdown: <http://packetlife.net/media/library/16/Markdown.pdf>