Cheatography
https://cheatography.com
Info
/var/lib/rpm RPM database |
Query
rpm -qa show all installed packages |
rpm -qi package show local package info |
rpm -ql package show local package content |
rpm -qf /path/to/file show package owning the file |
rpm -qd package show local package docs |
rpm -qc package show local package config |
rpm -qpi /path/to/package show remote package info |
rpm -qpl /path/to/package show remote package content |
Install/Upgrade
rpm -ivh package install a new package |
rpm -Uvh package upgrade or install the package |
rpm -Fvh package upgrade package |
Uninstall
rpm -e package uninstall package |
rpm -e --replacepkgs package replace package |
|
|
Verify
rpm -Vvf /path/to/file verify file against package database |
. shows verification successful |
5 shows MD5 verification unsuccessful |
S shows file size verification unsuccessful |
L shows symlink verification unsuccessful |
T shows mtime verification unsuccessful |
D shows device major/minor number verification unsuccessful |
M shows mode verification unsuccessful |
? shows files unreachable |
U shows user ownership verification unsuccessful |
G shows group ownership verification unsuccessful |
Import
rpm --import /path/to/gpg/key import public key |
rpm -qa gpg-pubkey* shows all imported public key |
rpm -qi gpg-pubkey-db42a60e shows info about a specific public key |
rpm -e gpg-pubkey-db42a60e uninstall a specific public key |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by misterrabinhalder