Skip to content

RPM build: disable the dynamic mirror URLs when using a proxy#437

Merged
OddBloke merged 4 commits into
canonical:masterfrom
paride:fix-copr-epel-url
Jun 18, 2020
Merged

RPM build: disable the dynamic mirror URLs when using a proxy#437
OddBloke merged 4 commits into
canonical:masterfrom
paride:fix-copr-epel-url

Conversation

@paride
Copy link
Copy Markdown
Contributor

@paride paride commented Jun 15, 2020

When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

  • Uncomment the baseurl in /etc/yum.repos.d/*.repo.
  • Comment out the mirrorlist and metalink URLs in *.repo.
  • Replace the dynamic download.fedoraproject.org host with
    dl.fedoraproject.org, which is static.
  • Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
    as installing packages may add new repos (e.g. EPEL).
  • Stop disabling fastestmirror, not needed when doing the above.

Comment thread tools/run-container
Comment thread tools/read-dependencies Outdated
@paride
Copy link
Copy Markdown
Contributor Author

paride commented Jun 16, 2020

@smoser thanks for reviewing. Once you are happy with this pr I'd appreciate if you could go ahead pushing the big green button and merge it. Due to how the team is being reorganized I don't have commit rights at the moment, OTOH you do, and you are very welcome exercising them.

paride added 3 commits June 16, 2020 16:39
When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

 - Uncomment the baseurl in /etc/yum.repos.d/*.repo.
 - Comment out the mirrorlist and metalink URLs in *.repo.
 - Replace the dynamic download.fedoraproject.org host with
   dl.fedoraproject.org, which is static.
 - Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
   as installing packages may add new repos (e.g. EPEL).
 - Stop disabling fastestmirror, not needed when doing the above.
Favour long options in scripts.
@paride paride force-pushed the fix-copr-epel-url branch from f3f3503 to f57b3b1 Compare June 16, 2020 14:39
@OddBloke OddBloke merged commit d463983 into canonical:master Jun 18, 2020
@raharper raharper mentioned this pull request Jul 10, 2020
paride added a commit to paride/cloud-init that referenced this pull request Oct 7, 2020
…cal#437)

When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

 - Uncomment the baseurl in /etc/yum.repos.d/*.repo.
 - Comment out the mirrorlist and metalink URLs in *.repo.
 - Replace the dynamic download.fedoraproject.org host with
   dl.fedoraproject.org, which is static.
 - Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
   as installing packages may add new repos (e.g. EPEL).
 - Stop disabling fastestmirror, not needed when doing the above.
OddBloke pushed a commit that referenced this pull request Oct 7, 2020
…603)

When using an http proxy make sure to disable all the dynamic mirror
URLs. In particular:

 - Uncomment the baseurl in /etc/yum.repos.d/*.repo.
 - Comment out the mirrorlist and metalink URLs in *.repo.
 - Replace the dynamic download.fedoraproject.org host with
   dl.fedoraproject.org, which is static.
 - Run the above as part of the MAYBE_RELIABLE_YUM_INSTALL command,
   as installing packages may add new repos (e.g. EPEL).
 - Stop disabling fastestmirror, not needed when doing the above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants