cheat-fork-echo/cheat/cheatsheets/rpm

20 lines
384 B
Plaintext

# To install a package:
rpm -ivh <rpm>
# To remove a package:
rpm -e <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