First, RPM introduction
RPM (Redhat Package Manager) Red Hat Pack Manager
Why install with RPM: CentOS can use the Yum tool for free, but Yum is not available by default when you pay for Redhat. So it's going to be installed in RPM.
RPM Package Structure:
1.BASH-4.3.1.TAR.XZ: Package Name-Major version number-minor version number-issue number
2.BASH-4.3.2-5.EL6.X86_64.RPM: Package Name-major version number. minor version number. The release number of the source program release number-RPM package. Host Platform. Cup schema (if write noarch means 32, 64-bit support)
Second, how to install the RPM package
Mount First:mount/dev/cdrom/mnt
Special cases when installing RPM packages:
For example, when we go to install Ypbind the prompt needs Yp-tools:
So, let's install Yptools, which also prompts you to Ypbind:
This shows that the two packages depend on each other, and the workaround: Install both packages at the same time
How to force the installation of RPM packages (this method is used to resolve dependencies, use caution):RPM–IVH--nodeps
Third, how to upgrade the RPM package
Iv. How to check the RPM package
1. Check the available RPM packages
2. Query the installed RPM package
V. How to unload the RPM package
Six, rpm command parameters
-QA Query all queries all RPM packages
-IVH Install Verbose hash Display installation Progress
-UVH update Verbose hash shows upgrade Progress
- e earse Uninstall
-QPL Query Package list to see what files need to be installed for a non-installed RPM pack
-QL Query Package list to see which files are installed by an installed RPM pack
-QPI Query Package Install to view information about a non-installed RPM pack
-qi Query Package Install to view information about an installed RPM pack
-qf Query file lists which rpm package a file belongs to
-va View lost check all RPM packages to find missing files
Linux Commands: rpm