2016-01-15 15:12:57 +00:00
|
|
|
# rpm
|
|
|
|
|
2016-01-17 20:45:45 +00:00
|
|
|
> RPM Package Manager.
|
2021-10-04 15:00:16 +01:00
|
|
|
> More information: <https://rpm.org/>.
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- Show version of httpd package:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --query {{httpd}}`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- List versions of all matching packages:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --query --all '{{mariadb*}}'`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
2019-10-10 20:35:01 +01:00
|
|
|
- Forcibly install a package regardless of currently installed versions:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --upgrade {{package_name.rpm}} --force`
|
2019-10-10 20:35:01 +01:00
|
|
|
|
2016-01-15 15:12:57 +00:00
|
|
|
- Identify owner of a file and show version of the package:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --query --file {{/etc/postfix/main.cf}}`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- List package-owned files:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --query --list {{kernel}}`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- Show scriptlets from an RPM file:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --query --package --scripts {{package_name.rpm}}`
|
2016-01-15 15:12:57 +00:00
|
|
|
|
|
|
|
- Show changed, missing and/or incorrectly installed files of matching packages:
|
|
|
|
|
2022-05-12 16:32:12 +01:00
|
|
|
`rpm --verify --all '{{php-*}}'`
|
2022-07-10 06:15:34 +01:00
|
|
|
|
|
|
|
- Display the changelog of a specific package:
|
|
|
|
|
|
|
|
`rpm --query --changelog {{package_name}}`
|