The method for customizing the update source in Fedora is different from that in CentOS. You can do this: Set/etc/yum. repo. d. all enable labels in the repo file are set to 0 (in fact, only the enable labels in [fedora] and [updates] need to be set), and then in/etc/yum. repo. d. objects ending with a repo, such as update. repo. Edit the update. repo content as follows: [B
The method for customizing the update source in Fedora is different from that in CentOS.
Specifically, you can do this:
Set/etc/yum. repo. d. all enable labels in the repo file are set to 0 (in fact, only the enable labels in [fedora] and [updates] need to be set), and then in/etc/yum. repo. d. objects ending with a repo, such as update. repo.
Edit the update. repo content as follows:
[Base-local]
Name = Fedora $ releasever-$ basearch
Failovermethod = priority
Base url = http://XX.XX.XX.XX/yum/base/
Enabled = 1
Gpgcheck = 0
[Updates-local]
Name = Fedora $ releasever-$ basearch-Updates
Failovermethod = priority
Base url = http://XX.XX.XX.XX/yum/updates/
Enabled = 1
Gpgcheck = 0
Save. The two addresses are the update source directories you need to define.