rpm: add short options (#17824)

This commit is contained in:
Dylan
2025-08-26 07:18:36 +00:00
committed by GitHub
parent 55c569c61d
commit e15ac7d2ec
+8 -8
View File
@@ -6,32 +6,32 @@
- Show version of httpd package:
`rpm --query {{httpd}}`
`rpm {{[-q|--query]}} {{httpd}}`
- List versions of all matching packages:
`rpm --query --all '{{mariadb*}}'`
`rpm {{[-qa|--query --all]}} '{{mariadb*}}'`
- Forcibly install a package regardless of currently installed versions:
`rpm --upgrade {{path/to/package.rpm}} --force`
`rpm {{[-U|--upgrade]}} {{path/to/package.rpm}} --force`
- Identify owner of a file and show version of the package:
`rpm --query --file {{/etc/postfix/main.cf}}`
`rpm {{[-qf|--query --file]}} {{/etc/postfix/main.cf}}`
- List package-owned files:
`rpm --query --list {{kernel}}`
`rpm {{[-ql|--query --list]}} {{kernel}}`
- Show scriptlets from an RPM file:
`rpm --query --package --scripts {{package.rpm}}`
`rpm {{[-qp|--query --package]}} --scripts {{package.rpm}}`
- Show changed, missing and/or incorrectly installed files of matching packages:
`rpm --verify --all '{{php-*}}'`
`rpm {{[-Va|--verify --all]}} '{{php-*}}'`
- Display the changelog of a specific package:
`rpm --query --changelog {{package}}`
`rpm {{[-q|--query]}} --changelog {{package}}`