Remembering the syntax for yum is something I seem to have problems with. To simplify my own life, and possible yours, here is a list of some commands I find useful. Some of them should be executed as root.
- Install without being prompted:
yum -y install package-name - Uninstall without being prompted:
yum -y remove package-name - Update without being prompted:
yum -y update package-name - List available packages:
yum list - List installed packages:
yum list installed - Clear cache:
yum clean all - Getting help:
yum --help - Assume yes, answer all questions with yes:
-y - Debug level, 0 - 10:
-d
Resources
- A blog post with more examples
- RPM - Cheat sheet
- Thomas Sundberg - The author