mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
31 lines
604 B
Text
31 lines
604 B
Text
# 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>
|