RPM package Management, installation rpm -i,--install rpm_package ... -v Show Progress -h:bash the number of # to show the installation progress, A # indicates 2% Progress --test test can be installed --nodeps Ignore dependencies -ivh,--replacepkgs Reinstall, the original configuration file will not be overwritten, new installation 's configuration file renames files with rpmnew suffix -e ,--erase Uninstall, with the package name, if you uninstall the package that is dependent on other programs, to remove dependencies or ignore dependencies or not uninstall -q query whether a package is installed -qa query all installed packages -qi Query Package Description Information -ql Query the list of files generated by the current system after the package is installed -qf query which package is generated for a file -qd Query package installation generated Help document - qc Query the configuration file generated after installation -q ,--scripts Query Package relatedScripts, scripts divided into four categories preinstall pre-installation scripts postinstall post-installation scripts preinstall Pre-Uninstall Scripts postinstall post-Uninstall scripts query information about RPM package files that have not been installed - qpl query installation after the build Rpm -qpi Query Simple description information rpm Package upgrade -U Upgrade or install -F Upgrade rpm { -uvh|-fvh} --nodeps Ignore dependencies --force Forced installation Note: Do not upgrade the kernel, multiple versions of the kernel can coexist, it is recommended to perform the installation operation rpm Package Check Check if the files generated after package installation are modified rpm -V -S -M -5 -D -L -U -G -T -p rpm verification of source legality and package integrity Package Integrity: {md5|sha1} through one-way encryption mechanism source legitimacy: via Public key Cryptography (RSA) commands gpg pgp rpm -K Import the author's public key, The public key of the CentOS release is in the ISO file import command: rpm --import gpg-key-file rpm --checking - -nosignature does not check the legitimacy of the source --nodigest Do not check package integrity Rebuild Database rom --initdb initialization, pre-existing, new            --REBUILDDB Direct Reconstruction coverage
Linux Fundamentals 20