rpm: use long arguments format (#8086)

htop
Martin Matous 2022-05-12 17:32:12 +02:00 committed by GitHub
parent 7c6206b74f
commit 791abd7b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -5,28 +5,28 @@
- Show version of httpd package:
`rpm -q {{httpd}}`
`rpm --query {{httpd}}`
- List versions of all matching packages:
`rpm -qa '{{mariadb*}}'`
`rpm --query --all '{{mariadb*}}'`
- Forcibly install a package regardless of currently installed versions:
`rpm -U {{package_name.rpm}} --force`
`rpm --upgrade {{package_name.rpm}} --force`
- Identify owner of a file and show version of the package:
`rpm -qf {{/etc/postfix/main.cf}}`
`rpm --query --file {{/etc/postfix/main.cf}}`
- List package-owned files:
`rpm -ql {{kernel}}`
`rpm --query --list {{kernel}}`
- Show scriptlets from an RPM file:
`rpm -qp --scripts {{package_name.rpm}}`
`rpm --query --package --scripts {{package_name.rpm}}`
- Show changed, missing and/or incorrectly installed files of matching packages:
`rpm -Va '{{php-*}}'`
`rpm --verify --all '{{php-*}}'`