After I installed Fedora 20 on my new computer, I could not use 'yum install' because I just got a long string of error messages.

I first posted this question on this site: "How can I get yum and the internet browser to work after fresh Fedora 20 installation" which gives the full details of the errors I got early on.

After nearly six weeks of frustration I finally found the answer in:


Answer by Stramash November 4, 2013 at 2:24 pm

Resolved this by adding nameserver above my router’s address in resolv.conf that was obtained by DHCP.

I had also asked, here: "I have to do this edit every time I log on, and I would like to make it permanent." and soon found an answer in:


So I did this edit:

vi /etc/sysconfig/network-scripts/ifcfg-p20p1

changing the line: PEERDNS=yes to PEERDNS=no

Although this all works, I am not sure why. What I would, please, like is to read a detailed description of what yum does to locate an installation package, the files associated with this process, and how they can be modified or configured if necessary, for instance as a flow chart or list.

  • 2
    Which is the error you have?
    – Braiam
    Mar 31, 2014 at 11:32
  • 1
    Instead of adding the extra DNS directly in resolv.conf, add it in Network Manager, as Network Manager generates your resolv.conf.
    – Leiaz
    Mar 31, 2014 at 11:55
  • Exactly what does resolve.conf look like before you do that?
    – goldilocks
    Mar 31, 2014 at 13:07
  • 1
    @goldilocks OP had already posted it here when trying to fix the problem with yum.
    – Leiaz
    Mar 31, 2014 at 13:33
  • Downvoters, please take a moment to suggest how the Q can be improved. Jul 28, 2017 at 7:46

1 Answer 1


This is not a problem with yum it seems, but DNS resolution instead.

It seems that the DNS settings that you manually add to /etc/resolv.conf are overwritten every time you boot your machine or renew network connection by Network Manager.

A good way to find out is to check the first lines of the resolv.conf file. If you see something like "this file was generated automatically.." then it is likely that you can't modify this file permanently.

If you are using DCHP to get IP settings, you should check your router settings and confirm that it provides a DNS server ( it depends on router model, search on google) NOTE: if you can't control your DNS settings in router, you can do semi-automatic configuration in Network Manager ( see Fedora's doc)

If you are using static IP, go to Network Manager settings to define one.

Here the Fedora's doc chapter

  • 1
    +1 If your router does provide DNS, or has an external address that does (it should), it will tell the DHCP client that and the DHCP client will write that address into resolve.conf, I believe. Kind of strange this does not happen.
    – goldilocks
    Mar 31, 2014 at 13:07
  • This can be controlled in dhclient.conf. See entry: request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, domain-search, But I don't think Harry touched this?
    – UnX
    Mar 31, 2014 at 13:55
  • The suggestions, for which I am grateful, all need a deeper understanding of the system than I have, hence the final paragraph of my question. Mar 31, 2014 at 16:15
  • 1
    network-manager takes precedence on network-scripts as far as I know. I would suggest that you revert any change you have made to the device network scripts and follow my advice. If you are unfamiliar with Linux, you should use network-manager (see link in answer) to configure your network settings. Again you are describing a DNS resolution issue, not a yum related problem.
    – UnX
    Mar 31, 2014 at 16:47
  • 1
    @Harry, I don't assume that you know network-manager this is why I gave you the links to the doc on how to use it. If you are interested in understanding how network-manager works in the backend, you will find plenty of answers on the internet.
    – UnX
    Apr 1, 2014 at 18:41

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.