Forrest logo
back to the rpm tool

rpm:tldr:fb093

rpm: Show version of httpd package.
$ rpm --query ${httpd}
try on your machine

The command "rpm --query ${httpd}" is used to query information about the Apache HTTP Server package installed on a Linux system using the RPM (Red Hat Package Manager) command-line tool. Here is a breakdown of the command: - "rpm" refers to the RPM command-line tool, which is used for package management on RPM-based Linux distributions such as Red Hat Enterprise Linux (RHEL) or CentOS. - "--query" is an option or argument that tells the RPM tool to perform a query operation, which means it will retrieve information about a specific package or packages. - "${httpd}" is a variable referring to the name of the package being queried. In this case, it seems like the value of the variable "httpd" has been previously set, representing the name of the Apache HTTP Server package. So, the command essentially retrieves information about the installed Apache HTTP Server package by querying the RPM database for details about the package identified by the variable "${httpd}".

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