Hi, I am very new to linux and yum and I have just installed yum. When I try to install mysql or do anything with yum I get errors like "retrygrab() failed for: [mirror.dulug...."...] I think that I have to fix the conf file but I don't know how to do this. Can I do it through command line? All the tutorials I have seen tell you what to edit in the config but I don't even know how to view my conf let alone edit it. Please help me.
It's normally in /etc/yum.conf, but could be in different places depending on your particular Linux distribution and yum build options. If it isn't in /etc/yum.conf, try "locate yum.conf", assume you have locate on your machine and an up-to-date locate database. (run "updatedb" as root to update the locate database.)
"man yum.conf" should tell you everything you need to know about how to set-up yum.conf.
You will need to be root to edit /etc/yum.conf. ("su", and it will ask for the root password.) You can edit it using any text editor. I like "kate" for GUI, or "pico" for terminal-based editor (only because I remember Wordstar...)
You can view it with "cat /etc/yum.conf", "less /etc/yum.conf", or "more /etc/yum.conf" if for some reason you don't have "less".
You need to get a good book or online tutorial on basic Linux use an administration. For basic basics, I like the inexpensive "Phrasebook" series of pocket handbooks. (i.e. "Linux Phrasebook", "Apache Phrasebook", "MySQL Phrasebook")