mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 22:55:44 +02:00
rpm: use long arguments format (#8086)
This commit is contained in:
parent
7c6206b74f
commit
791abd7b78
1 changed files with 7 additions and 7 deletions
|
@ -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-*}}'`
|
||||
|
|
Loading…
Add table
Reference in a new issue