After the Centos system is customized, toolkit may be added later due to the company's needs. At this time, how should we provide this toolkit separately and install the required dependency packages. The following are several cases:
1. When installing the toolkit, the system prompts that the dependency is missing.
The preceding figure shows the dependency packages that are missing when the toolkit is installed;
2. In this case, we need to use the yum command to find the missing dependency package and install it.
# Yum provides libc. so.6 # search for software from the libc. so.6 file, which is similar to rpm-qf.
The above command system lists the glibc packages required by libc. so.6.
3. Download the package
A. In Centos 7, we can use the yum install command to download the required packages and dependency packages.
Yum install glibc
As shown in the preceding figure, when you use the yum install command in Centos 7, a "d" option is added, which means that the command is downloaded and not installed. In this way, we can download the required package along with the dependent package.
B. You can use the yumdownloader command to download the required package and dependency package in the environment below Centos6.
Yumdownloader glibc
The package is downloaded to the current directory. If the system does not support the yumdownloader command, you must first install the yum-utils software.