mirror of https://github.com/CrimsonTome/tldr.git
rpm: use long arguments format (#8086)
parent
7c6206b74f
commit
791abd7b78
|
@ -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…
Reference in New Issue