Last active
January 2, 2018 15:55
-
-
Save battleguard/b9e896fb8a4780cebb273c30149e300b to your computer and use it in GitHub Desktop.
RPM Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### INSTALLATION ### | |
| # install | |
| rpm -i ${packagename}.rpm | |
| # install with progress | |
| rpm -ivh ${packagename}.rpm | |
| # install in full-on debug mode | |
| rpm -ivvvh ${packagename}.rpm | |
| # install without running scripts | |
| rpm -i ${packagename}.rpm --noscripts | |
| # install even if this version is already installed | |
| rpm -i ${packagename}.rpm --force | |
| ### UNINSTALLATION ### | |
| # uninstall | |
| rpm -e ${packagename} | |
| # uninstall without running scripts | |
| rpm -e ${packagename} --noscripts | |
| # uninstall even if there are dependencies | |
| rpm -e ${packagename} --nodeps | |
| # uninstall all rpms containing "foo" in name | |
| rpm -e `rpm -qa | grep foo` | |
| ### UPGRADE ### | |
| # upgrade | |
| rpm -U ${packagename}.rpm | |
| # install without running scripts | |
| rpm -U ${packagename}.rpm --noscripts | |
| # update even if this version is already installed | |
| rpm -U ${packagename}.rpm --force | |
| ### ANALYSIS OF UNINSTALLED RPM FILES ### | |
| # print properties | |
| rpm -qipv ${packagename}.rpm | |
| # print filelist | |
| rpm -qlpv ${packagename}.rpm | |
| # print required dependencies | |
| rpm -qpR ${packagename}.rpm | |
| ### ANALYSIS OF INSTALLED RPM FILES | |
| # list all installed rpms containing "foo" in name | |
| rpm -qa | grep foo | |
| # print installed files of installed package | |
| rpm -ql ${packagename | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### ANALYSIS OF INSTALLED YUM FILES | |
| # view yum history | |
| yum history | |
| # view certain yum history transaction | |
| yum history ${transaction_number} | |
| #view install packages | |
| yum list installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment