tldr/pages/linux/rpm.md

28 lines
477 B
Markdown
Raw Normal View History

# rpm
2016-01-17 20:45:45 +00:00
> RPM Package Manager.
- Show version of httpd package:
`rpm -q {{httpd}}`
- List versions of all matching packages:
`rpm -qa '{{mariadb*}}'`
- 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:
`rpm -qp --scripts {{some.rpm}}`
- Show changed, missing and/or incorrectly installed files of matching packages:
2016-01-17 20:42:24 +00:00
`rpm -Va '{{php-*}}'`