RPM Commands Cheat Sheet

Here is a cli commands cheat sheet for RPM command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is RPM command?

Add some data here

        # To install a package:
rpm -ivh 

# To update a package:
rpm -Uv 

# To remove a package:
rpm -e 

# To remove a package, but not its dependencies
rpm -e --nodeps 

# To find what package installs a file:
rpm -qf 

# To find what files are installed by a package:
rpm -ql 
rpm -qpl 

# To find what packages require a package or file:
rpm -q --whatrequires 
rpm -q --whatrequires 

# To list all installed packages:
rpm -qa

# To find a packages's dependencies:
rpm -i --test 

# To display checksum against a source:
rpm -K 

# To verify a package:
rpm -V 
    

Check out the RPM command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list