2016-01-15 15:12:57 +00:00
|
|
|
# rpm
|
|
|
|
|
2016-01-17 20:45:45 +00:00
|
|
|
> RPM Package Manager.
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- Show version of httpd package:
|
|
|
|
|
|
|
|
`rpm -q {{httpd}}`
|
|
|
|
|
|
|
|
- List versions of all matching packages:
|
|
|
|
|
|
|
|
`rpm -qa '{{mariadb*}}'`
|
|
|
|
|
2019-10-10 20:35:01 +01:00
|
|
|
- Forcibly install a package regardless of currently installed versions:
|
|
|
|
|
|
|
|
`rpm -U {{package_name.rpm}} --force`
|
|
|
|
|
2016-01-15 15:12:57 +00:00
|
|
|
- Identify owner of a file and show version of the package:
|
|
|
|
|
|
|
|
`rpm -qf {{/etc/postfix/main.cf}}`
|
|
|
|
|
|
|
|
- List package-owned files:
|
|
|
|
|
|
|
|
`rpm -ql {{kernel}}`
|
|
|
|
|
|
|
|
- Show scriptlets from an RPM file:
|
|
|
|
|
2019-10-10 20:35:01 +01:00
|
|
|
`rpm -qp --scripts {{package_name.rpm}}`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- Show changed, missing and/or incorrectly installed files of matching packages:
|
|
|
|
|
2016-01-17 20:42:24 +00:00
|
|
|
`rpm -Va '{{php-*}}'`
|