Created
February 14, 2014 14:15
-
-
Save parzonka/9001677 to your computer and use it in GitHub Desktop.
rpm quick reference / 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
# do not rely on specific architecture | |
BuildArch: noarch | |
# suppress automatic detection of requirements | |
AutoReqProv: no |
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment