Find the package that owns a specific file

pacman --files

  • Arch Linux package manager utility.
    See also `pkgfile`.
    More information: <https://man.archlinux.org/man/pacman.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pacman --files {{filename}}

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