Skip to content

Commit

Permalink
rpm: use long arguments format (tldr-pages#8086)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatous committed May 12, 2022
1 parent 7c6206b commit 791abd7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pages/linux/rpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-*}}'`

0 comments on commit 791abd7

Please sign in to comment.