mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-01 05:21:06 +01:00
32 lines
604 B
Plaintext
32 lines
604 B
Plaintext
# To install a package:
|
|
rpm -ivh <rpm>
|
|
|
|
# To remove a package:
|
|
rpm -e <package>
|
|
|
|
# To remove a package, but not its dependencies
|
|
rpm -e --nodeps <package>
|
|
|
|
# To find what package installs a file:
|
|
rpm -qf </path/to/file>
|
|
|
|
# To find what files are installed by a package:
|
|
rpm -ql <package>
|
|
rpm -qpl <rpm>
|
|
|
|
# To find what packages require a package or file:
|
|
rpm -q --whatrequires <package>
|
|
rpm -q --whatrequires <file>
|
|
|
|
# To list all installed packages:
|
|
rpm -qa
|
|
|
|
# To find a pkg's dependencies
|
|
rpm -i --test <package>
|
|
|
|
# Display checksum against source
|
|
rpm -K <package>
|
|
|
|
# Verify a package
|
|
rpm -V <package>
|