Search for a package that owns a specific file, displaying the package version

pkgfile

  • Tool for searching files from packages in the official repositories on arch-based systems.
    See also `pacman files`, describing the usage of `pacman --files`.
    More information: <https://man.archlinux.org/man/extra/pkgfile/pkgfile.1>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pkgfile --verbose {{filename}}

click the source code to copy install pkgfile on any operating system with command-not-found.com