cheat-fork-echo/cheat/cheatsheets/rpm

32 lines
604 B
Text
Raw Normal View History

2014-08-07 11:59:59 +02:00
# To install a package:
rpm -ivh <rpm>
# To remove a package:
rpm -e <package>
2015-09-08 03:57:17 +02:00
# To remove a package, but not its dependencies
rpm -e --nodeps <package>
2014-08-07 11:59:59 +02:00
# To find what package installs a file:
rpm -qf </path/to/file>
# To find what files are installed by a package:
rpm -ql <package>
2014-08-07 11:59:59 +02:00
rpm -qpl <rpm>
# To find what packages require a package or file:
rpm -q --whatrequires <package>
rpm -q --whatrequires <file>
2014-08-07 11:59:59 +02:00
# To list all installed packages:
rpm -qa
2015-09-08 03:57:17 +02:00
# To find a pkg's dependencies
rpm -i --test <package>
# Display checksum against source
rpm -K <package>
# Verify a package
rpm -V <package>