List installed packages matching a pattern

dpkg-query

  • A tool that shows information about installed packages.
    More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dpkg-query --list '{{libc6*}}'

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