rpm common operations

A, rpm common operations
1, to install the software
RPM -ivh PackageName
2, query software installation
RPM -qa | grep packgename
# filename screening
RPM -qa
# query all
RPM -ql packgename
# query software position
3, uninstall the software
rpm -e packgename

two, rpm command parameters common
usage: rpm [options ...]
-a: query All kits;
-b <completion stage> <package file> + or -t <completion stage> <package file> +: set packing kit stages of completion, and specify the file name of the package profile;
-c: list only configuration profiles, this parameter must comply with the "-l" parameter;
-d: list only a text file, this parameter must comply with the "-l "parameter;
-e <package file> or --erase <package file>: delete the specified package;
-f <file> +: query suite has a specified file;
-h or --hash: list when kit installation marker;
-i: display information kit;
-i <package file> or --install <package file>: Specifies the installation package file;
-l: display a list of files kit;
-p <package file>+: Query RPM kit specified file;
-q: Use inquiry mode, when any problems, rpm will first ask the user instruction;
-R & lt: the display-related information kit;
-s: display file status, parameters to be present with the "-l" parameter;
-U <package file> or --upgrade <package file>: Upgrade kit specified file;
-v: display instruction execution;
-vv: Details display process execution instruction, to facilitate troubleshooting.

Guess you like

Origin www.cnblogs.com/lazy-sang/p/11575194.html