Forrest logo
back to the dpkg-query tool

dpkg-query:tldr:6c82d

dpkg-query: List installed packages matching a pattern.
$ dpkg-query --list '${libc6*}'
try on your machine

The command "dpkg-query --list '${libc6*}'" is used to list the packages installed on your system that have a name starting with "libc6".

Here's how the command works:

  • "dpkg-query" is a command-line tool in Debian-based systems (e.g. Ubuntu) used for querying information about installed packages.
  • "--list" is an option that instructs "dpkg-query" to list the packages.
  • "'${libc6}'" is a parameter that specifies the pattern or filter to match the package names against. In this case, it looks for package names starting with "libc6". The use of single quotes ('') around the parameter prevents the shell from interpreting the asterisk () as a wild card character.

When you execute the command, it will display a list of installed packages whose names match the pattern specified. The output will include details such as the package name, installed version, and a short description.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dpkg-query tool