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
K.B.Dharun Krishna 2135714193
pages/*, style-guide: update contents, fix Markdown (#10492)
* pages/*, style-guide: update pages, fix Markdown (commit 1)

* Update pages

* style-guide.de: update page

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* pip3: remove search command

* rpm: update path placeholder

Co-authored-by: pixel <pixel+github@chrissx.de>

* Update pages/linux/pkgfile.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: pixel <pixel+github@chrissx.de>
2023-08-26 23:00:06 +05:30

37 lines
900 B
Markdown

# rpm
> RPM Package Manager.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://rpm.org/>.
- Show version of httpd package:
`rpm --query {{httpd}}`
- List versions of all matching packages:
`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:
`rpm --query --file {{/etc/postfix/main.cf}}`
- List package-owned files:
`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:
`rpm --verify --all '{{php-*}}'`
- Display the changelog of a specific package:
`rpm --query --changelog {{package}}`