Can you install a repo as a yum dependency?

Doug Whitfield asked:

I believe the answer is no, and I understand the security implications, but I just want to make sure I am not crazy. It’s hard to believe no one has asked this before, but I haven’t been able to find it.

My answer:

A package can depend on another package which happens to install a repo file, such as epel-release, but it will not actually be used during that run of yum because it hasn’t been installed yet.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.