LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   yum conf file - where is it?? (https://www.linuxquestions.org/questions/fedora-35/yum-conf-file-where-is-it-341356/)

frenchgrey 07-08-2005 02:38 PM

yum conf file - where is it??
 
Hi all,

as a fedora and yum newbie, I need to change the repos listed in the yum.conf file... however, I don't know where to find it. Using SSH, what command brings up the contents of the file so that I can paste the new stuff into it. I've spent all day looking for it in vain. Please help :)

tommyr1216 07-08-2005 02:59 PM

Your yum.conf should be located in /etc/. If it's missing, you may want to download the yum rpm from redhat's site and install it, that should replace the default configuration file.

fouldsy 07-08-2005 02:59 PM

I think it's probably just /etc/yum.conf , but i've only briefly used fedora a while back. could be wrong, but most of your confiruation files will be stored in /etc/

frenchgrey 07-08-2005 03:05 PM

I've tried yum -c /etc/yum.conf with no luck as it tells me permission denied.

tommyr1216 07-08-2005 03:55 PM

you don't need to specify the file, just leave off the -c /etc/yum.conf. Yum will look there automatically for it. As for the permission denied, are you root? If so, check the permissions on yum.conf. (ls -l /etc/yum.conf). The file should be owned by root and owner should have read and write permission on it. If not, you can add these (chmod u+rw /etc/yum.conf).

mkoljack 07-08-2005 04:10 PM

yum
 
/etc/yum.conf or /etc/yum.repos.d -- where you can list them individually

frenchgrey 07-08-2005 05:23 PM

Thanks for all your help, I will try out what you suggest.


All times are GMT -5. The time now is 05:05 PM.