For some instances of RPM under CentOS rpm-ivh MySQL-server-5.6.10-1.el6.i686.rpm # install MySQL rpm-ivh -- test MySQL-server-5.6.10-1.el6.i686.rpm # Check to install MySQL resolution:-I equivalent to -- install, that is, install, the syntax structure is rpm {-I | -- install} [install-options] package_file;-v displays the installation information;-h displays the installation progress. INSTALL-OPTIONS -- nodeps when the software is dependent on other software and cannot be installed, you can force INSTALL -- replacefiles. If a file already exists during installation, you can directly overwrite -- replacepkgs if the software has been installed, you can use this option to install it again -- force installation, and existing files will be overwritten, if you have installed the software, the -- test installation will be re-installed, and the software will not be installed, but the system will instruct you to check the installation process -- justdb only updates the rpm database, when the rpm database is damaged, you can use this option to re-generate the relevant information -- nosignature skipped the digital signature check -- prefix NEWPATH to install the software to the specified directory -- noscripts prohibits the execution of system commands during installation ...... rpm-Uvh MySQL-server-5.6.10-1.el6.i686.rpm # Upgrade, install if MySQL is not installed, upgrade rp if MySQL is installed M-fvl MySQL-server-5.6.10-1.el6.i686.rpm # update, ignored if MySQL has not been installed, upgrade resolution if MySQL has been installed:-U equivalent to -- upgrade, the syntax structure is rpm {-U | -- upgrade} [install-options] package_file;-F is equivalent to -- freshen, syntax structure is rpm {-F | -- freshen} [install-options] package_file rpm-e MySQL-server-5.6.10-1.el6.i686.rpm # uninstall parsing:-e is equivalent to -- erase, the syntax structure is rpm {-e | -- erase} [erase-options] package_name rpm-qa | grep rpm # query the parsing of all installed software packages:-q is equivalent to -- query, instant Query Query. The syntax structure is rpm {-q | -- query} [select-options]... rpm-qf/etc/rpm # Query file/etc/rpm package parsing:-f is equivalent to -- file rpm-qc rpm | head # query all rpm configuration file parsing: -c is equivalent to -- configfiles rpm-qd rpm | tail # query all instructions of rpm document parsing:-d is equivalent to -- docfiles rpm-qi rpm # query the basic information parsing of rpm: -I is equivalent to -- info rpm-ql rpm | head # querying all rpm-Related File resolutions:-l is equivalent to -- list rpm-qR man # querying the package parsing required by man: -R is equivalent to -- requires rpm-qpR MySQL-server-5.6.10-1.el6.i686.rpm # Query -P is equivalent to -- package. The syntax structure is rpm-qp [select-options] package_file rpm-Va # Shows the parsing of all modified documents: L indicates that the link path has been changed, and c indicates the configuration file. Column 1: whether the S-file size is changed; whether the M-document type or attribute (rwx) is changed; and whether the 5-MD5 verification code is changed; d-whether the primary and secondary codes of the device are changed; whether the L-link path is changed; whether the user of the U-file is changed; and whether the user group of the G-file is changed; t-whether the creation time of the file is changed; whether the capacity of the P-file is changed. Column 2: c-configuration file; d-document file; g-ghost file, that is, this file is not included by any software; l-license file; r-readme file rpm-Vp MySQL-server-5.6.10-1.el6.i686.rpm | tail # list files that may have been modified in the MySQL installation package rpm-Vf/etc/crontab # Check if the file has been modified rpm -- import/etc /pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 # import key file rpm -- rebuilddb # rebuild rpm Database