Forrest logo
back to the rpm tool

rpm:tldr:2755a

rpm: List versions of all matching packages.
$ rpm --query --all '${mariadb*}'
try on your machine

The command "rpm --query --all '${mariadb*}'" is used to query the RPM database for all packages that have names starting with "mariadb".

Here is the breakdown of each component of the command:

  • "rpm" is the package manager command used to interact with RPM packages.
  • "--query" or "-q" is an option used to query the RPM database.
  • "--all" or "-a" is an option used to specify that the query should be performed on all installed packages.
  • "'${mariadb}'" is the query string, where '${mariadb}' is a wildcard pattern that matches any package name starting with "mariadb". The wildcard '*' represents any number of characters.

By executing this command, the RPM database will be queried, and a list of all installed packages that have names starting with "mariadb" will be displayed.

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 rpm tool