How do I set the network adapter of yum/dnf

asked 2017-01-15 17:55:53 -0600

I'm currently connected to two networks one I have I want to use for updates and the other I would like to use for services such as apache or nginx which I can figure out, I can't quite find anywhere an answer to using a specific network adapter for yum/dnf.

edit retag flag offensive close merge delete


Can you explain in a little more detail why you want to do this? Are your different adapters connected to different networks?

mattdm gravatar imagemattdm ( 2017-01-15 21:38:32 -0600 )edit

This has nothing to do with yum/dnf. You must set up your routing table, ip forwarding and/or whatever is needed for your actual network configuration to work. So please provide more information, networking is splitted in many layers, applications don't and mustn't care about the underlying settings.

fcomida gravatar imagefcomida ( 2017-01-16 03:38:38 -0600 )edit

if you have an adapter that you want to use just for Yum, your only option would be to take the interface of the other adapter down, while you do your yum/dnf. You could make a script, to take the net interface down, do the update, and then reactivate the net interface.

SteveEbey73701 gravatar imageSteveEbey73701 ( 2017-01-17 22:44:26 -0600 )edit