Re: yum -c [config file] option not working in YUM 2.4

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1185541787.2409.27.camel@cutter>
On Fri, 2007-07-27 at 18:39 +0530, Aawardhan Logandhan wrote:
> I think what yum 2.4 does is, it looks at both the
> default /etc/yum.conf(also /etc/yum.repos.d) and also the custom
> config file, which is prepared by the user. 
> 
> This problem didn't arise with yum 2.0 because /etc/yum.repos.d wasn't
> there at that time. 
> 
> If the user uses -c option with yum, he would not want yum to look at
> the default yum.conf file.
> So, how do we disable yum from looking at the default config files??
> 
> Thanks in advance

no - what does your reposdir= option in your yum.conf say?

If it is not listed then it defaults to /etc/yum.repos.d

Therefore your alternative yum.conf is going to pull in the same repos.

If you want to disable reposdir then do:
reposdir=/dev/null

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.