mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 02:50:31 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
42
tldr/linux/rpm
Normal file
42
tldr/linux/rpm
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user