This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rpm [2025/05/07 23:22] – ken | rpm [2026/07/07 23:13] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| rpm --install --force --nosignature rsyslog-8.2408.0-1.el8.x86_64.rpm | rpm --install --force --nosignature rsyslog-8.2408.0-1.el8.x86_64.rpm | ||
| </ | </ | ||
| + | \\ | ||
| + | === --queryformat|--qf === | ||
| + | |||
| List installed rpm packages by package name, including version | List installed rpm packages by package name, including version | ||
| < | < | ||
| Line 9: | Line 12: | ||
| </ | </ | ||
| - | ==== Available Tags For --queryformat | + | === Available Tags For --queryformat === |
| The following tags were defined at the time this book was written. For the latest list of available queryformat tags, please issue the following command: | The following tags were defined at the time this book was written. For the latest list of available queryformat tags, please issue the following command: | ||
| < | < | ||
| Line 17: | Line 20: | ||
| Keep in mind that the list of tags produced by the --querytags option is the complete list of all tags used by RPM internally; for instance, during package builds. \\ | Keep in mind that the list of tags produced by the --querytags option is the complete list of all tags used by RPM internally; for instance, during package builds. \\ | ||
| Because of this, some tags do not produce meaningful output when used in a '' | Because of this, some tags do not produce meaningful output when used in a '' | ||
| - | __List of --queryformat Tags__ | + | For every tag in this section, there can be as many as three different pieces of information: |
| - | For every tag in this section, there can be as many as three different pieces of information: | + | |
| - | A short description of the tag. | + | * A short description of the tag. |
| + | * | ||
| + | * What modifiers can be used with the tag. | ||
| - | Whether the data specified by the tag is an array, and if so, how many members are present in the array. | + | **The NAME Tag**\\ |
| - | + | | |
| - | What modifiers can be used with the tag. | + | |
| - | + | | |
| - | The NAME Tag | + | \\ |
| - | + | **The VERSION Tag**\\ | |
| - | The NAME tag is used to display the name of the package. | + | |
| - | + | | |
| - | Array: No | + | |
| - | + | \\ | |
| - | Used with modifiers: N/A | + | **The RELEASE Tag**\\ |
| - | The VERSION Tag | + | |
| - | + | | |
| - | The VERSION tag is used to display the version of the packaged software. | + | |
| - | + | \\ | |
| - | Array: No | + | **The EPOCH Tag**\\ |
| - | + | | |
| - | Used with modifiers: N/A | + | |
| - | The RELEASE Tag | + | |
| - | + | \\ | |
| - | The RELEASE tag is used to display the release number of the package. | + | **The SUMMARY Tag**\\ |
| - | + | | |
| - | Array: No | + | |
| - | + | | |
| - | Used with modifiers: N/A | + | \\ |
| - | The EPOCH Tag | + | **The DESCRIPTION Tag**\\ |
| - | + | | |
| - | The EPOCH tag is used to display the epoch number of the package. | + | |
| - | + | | |
| - | Array: No | + | \\ |
| - | + | **The BUILDTIME Tag**\\ | |
| - | Used with modifiers: N/A | + | |
| - | The SUMMARY Tag | + | |
| - | + | | |
| - | The SUMMARY tag is used to display a one-line summation of the packaged software. | + | \\ |
| - | + | **The BUILDHOST Tag**\\ | |
| - | Array: No | + | |
| - | + | | |
| - | Used with modifiers: N/A | + | |
| - | The DESCRIPTION Tag | + | \\ |
| - | + | **The INSTALLTIME Tag**\\ | |
| - | The DESCRIPTION tag is used to display a detailed summation of the packaged software. | + | |
| - | + | | |
| - | Array: No | + | |
| - | + | \\ | |
| - | Used with modifiers: N/A | + | **The SIZE Tag**\\ |
| - | The BUILDTIME Tag | + | |
| - | + | | |
| - | The BUILDTIME tag is used to display the time and date the package was created. | + | |
| - | + | \\ | |
| - | Array: No | + | **The DISTRIBUTION Tag**\\ |
| - | + | | |
| - | Used with modifiers: :date | + | |
| - | The BUILDHOST Tag | + | |
| - | + | \\ | |
| - | The BUILDHOST tag is used to display the hostname of the system that built the package. | + | **The VENDOR Tag**\\ |
| - | + | | |
| - | Array: No | + | |
| - | + | | |
| - | Used with modifiers: N/A | + | \\ |
| - | The INSTALLTIME Tag | + | **The GIF Tag**\\ |
| - | + | * Unordered List ItemThe | |
| - | The INSTALLTIME tag is used to display the time and date the package was installed. | + | \\ |
| - | + | **The XPM Tag**\\ | |
| - | Array: No | + | * Unordered List ItemThe |
| - | + | \\ | |
| - | Used with modifiers: :date | + | **The LICENSE Tag**\\ |
| - | The SIZE Tag | + | |
| - | + | | |
| - | The SIZE tag is used to display the total size, in bytes, of every file installed by this package. | + | |
| - | + | \\ | |
| - | Array: No | + | |
| - | + | ||
| - | Used with modifiers: N/A | + | |
| - | The DISTRIBUTION Tag | + | |
| - | + | ||
| - | The DISTRIBUTION tag is used to display the distribution this package is a part of. | + | |
| - | + | ||
| - | Array: No | + | |
| - | + | ||
| - | Used with modifiers: N/A | + | |
| - | The VENDOR Tag | + | |
| - | + | ||
| - | The VENDOR tag is used to display the organization responsible for marketing the package. | + | |
| - | + | ||
| - | Array: No | + | |
| - | + | ||
| - | Used with modifiers: N/A | + | |
| - | The GIF Tag | + | |
| - | + | ||
| - | The GIF tag is not available for use with --queryformat. | + | |
| - | The XPM Tag | + | |
| - | + | ||
| - | The XPM tag is not available for use with --queryformat. | + | |
| - | The LICENSE Tag | + | |
| - | + | ||
| - | The LICENSE tag is used to display the distribution license of the package. | + | |
| - | + | ||
| - | Array: No | + | |
| - | + | ||
| - | Used with modifiers: N/A | + | |
| The PACKAGER Tag | The PACKAGER Tag | ||