Add centos Source
VI/etc/yum. Repos. d/rhel-debuginfo.repo
[RHEL-debuginfo] Name = Red Hat Enterprise Linux $ releasever-$ basearch-debugbaseurl = keystore setting gpgcheck = 1 will let Yum check the GnuPG signature of each downloaded rpm. This is because you need to register the GnuPG key to your RPM database. This can prevent spoofing, such as illegal intrusion into the release website and Trojan horse import software packages, allowing uninformed users to download gpgkey = file: /// etc/pki/rpm-GPG-key-RedHat-releasegpgkey, copy Add the following update point to insert to the rhel-debuginfo.repo text following [base] Name = Red Hat Enterprise Linux $ releasever-basebaseurl = hats Hat Enterprise Linux $ releasever-updatesbaseurl = Repository 1 [extras] Name = Red Hat Enterprise Linux $ releasever-extrasbaseurl = release Hat Enterprise Linux $ releasever-addonsbaseurl = release # Yum clean all clear cache and old package
[Root @ localhost ~] #
Yum install httpdTest whether software can be updated