If I add a new repo file under /etc/yum.repo.d/ folder. How can I gather all the URL which yum update will go out to fetch updates.

I am asking this because I have a server behind a firewall, which will allow traffic only to predesignated domain names. I want to determine all the domain names so that I can whitelist them all, so that my server remains updated.

enter image description here

  • I am still behind this without any headway, Is there any easy method to figuring this out rather than sticking a proxy up in front and gathering all the domains ? – Bala Feb 22 '17 at 11:10

You can grep the URL's used by yum from the /etc/yum.repo.d/* files.

Meanwhile, yum will download lists of URL's and attempt to use the fastest URL for downloading. Those lists can/will change, so you will have to configure the URL's you wish to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.