1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/rpm.md

38 lines
900 B
Markdown
Raw Normal View History

# rpm
2016-01-17 21:45:45 +01:00
> RPM Package Manager.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
2021-10-04 16:00:16 +02:00
> More information: <https://rpm.org/>.
- Show version of httpd package:
2022-05-12 17:32:12 +02:00
`rpm --query {{httpd}}`
- List versions of all matching packages:
2022-05-12 17:32:12 +02:00
`rpm --query --all '{{mariadb*}}'`
- Forcibly install a package regardless of currently installed versions:
`rpm --upgrade {{path/to/package.rpm}} --force`
- Identify owner of a file and show version of the package:
2022-05-12 17:32:12 +02:00
`rpm --query --file {{/etc/postfix/main.cf}}`
- List package-owned files:
2022-05-12 17:32:12 +02:00
`rpm --query --list {{kernel}}`
- Show scriptlets from an RPM file:
`rpm --query --package --scripts {{package.rpm}}`
- Show changed, missing and/or incorrectly installed files of matching packages:
2022-05-12 17:32:12 +02:00
`rpm --verify --all '{{php-*}}'`
2022-07-10 10:45:34 +05:30
- Display the changelog of a specific package:
`rpm --query --changelog {{package}}`