1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 22:15:42 +02:00

rpm: use long arguments format (#8086)

This commit is contained in:
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

View file

@ -5,28 +5,28 @@
- Show version of httpd package: - Show version of httpd package:
`rpm -q {{httpd}}` `rpm --query {{httpd}}`
- List versions of all matching packages: - List versions of all matching packages:
`rpm -qa '{{mariadb*}}'` `rpm --query --all '{{mariadb*}}'`
- Forcibly install a package regardless of currently installed versions: - 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: - 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: - List package-owned files:
`rpm -ql {{kernel}}` `rpm --query --list {{kernel}}`
- Show scriptlets from an RPM file: - 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: - Show changed, missing and/or incorrectly installed files of matching packages:
`rpm -Va '{{php-*}}'` `rpm --verify --all '{{php-*}}'`