List Info

Thread: CentOS-4.4 yumconf




CentOS-4.4 yumconf
user name
2006-10-10 21:08:52
"KS" == Karanbir Singh <mail-listskaran.org>

    KS> Just to do a recap to make sure we all understand
the
    KS> position here.

    KS> There are 4 sorts of user cases, been addressed
so far.

   [...]

    KS> did i miss someone ?

Yes.  

   5. People who have replaced the centos-yumconf package
(not
      just files in that package) with their own yumconf
package
      that does not provide repository configuration files
with
      the same names as the (old) centos-yumconf and the
(current)
      centos-release package; i.e., CentOS-Base.repo.


For those folks, the 4.4 redhat-release package plunks down
a
CentOS-Base.repo file.  As my repo file is called
HMC-Math-Base.repo, yum ignores my file and uses the new
CentOS-Base.repo file instead for repository sections
defined in
both files.

Adding ``enabled=0'' lines to the repository section in the
CentOS-Base.repo file causes yum to complain about multiply
defined repositories.


Being able to replace the centos-yumconf package was a
fairly
low-key intervention that allowed me to maintain a pristine
mirror
of the upstream CentOS tree and do a basic install from that
tree
using a kickstart file, then, in a setup script run on first
reboot, replace the centos-yumconf with my own, do updates,
install local packages, and so forth.

I'm not eager to have to rebuild the centos-release package
for
each update, so maybe the answer is to make my yumconf
package
supply CentOS-Base.repo and install it with the --force
flag, but
I preferred having a different name so that it would be
obvious
that we were using a local mirror.

From my perspective, having the separate centos-yumconf
preserves
this behavior while remaining transparent to users who don't
need
to override repositories.

   Claire

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*
  Claire Connelly                              cmcmath.hmc.edu 
  Systems Administrator                          (909)
621-8754   
  Department of Mathematics                 Harvey Mudd
College
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-4.4 yumconf
user name
2006-10-10 23:37:41
C.M. Connelly wrote:
> "KS" == Karanbir Singh <mail-listskaran.org>
> 
>     KS> Just to do a recap to make sure we all
understand the
>     KS> position here.
> 
>     KS> There are 4 sorts of user cases, been
addressed so far.
> 
>    [...]
> 
>     KS> did i miss someone ?
> 
> Yes.  
> 
>    5. People who have replaced the centos-yumconf
package (not
>       just files in that package) with their own
yumconf package

you'd expect these people to know what they are doing,
clueless should 
not be doing this.

>       that does not provide repository configuration
files with
>       the same names as the (old) centos-yumconf and
the (current)
>       centos-release package; i.e., CentOS-Base.repo.
> 

easy workaround,

rm /etc/yum.repos.d/CentOS-Base.repo
touch /etc/yum.repos.d/CentOS-Base.repo

and the file wont get in the way anymore / anyless than it
did previously.

-- 
Karanbir Singh : http://www.karan.org/ :
2522219icq
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-4.4 yumconf
user name
2006-10-10 23:43:42
The easiest workaround I found was to add

reposdir=

to your /etc/yum.conf [main] section.

This means you can't add other repos into that directory but
I don't 
normally do that anyway.

John.

Karanbir Singh wrote:

> C.M. Connelly wrote:
> 
>> "KS" == Karanbir Singh <mail-listskaran.org>
>>
>>     KS> Just to do a recap to make sure we all
understand the
>>     KS> position here.
>>
>>     KS> There are 4 sorts of user cases, been
addressed so far.
>>
>>    [...]
>>
>>     KS> did i miss someone ?
>>
>> Yes. 
>>    5. People who have replaced the centos-yumconf
package (not
>>       just files in that package) with their own
yumconf package
> 
> 
> you'd expect these people to know what they are doing,
clueless should 
> not be doing this.
> 
>>       that does not provide repository
configuration files with
>>       the same names as the (old) centos-yumconf
and the (current)
>>       centos-release package; i.e.,
CentOS-Base.repo.
>>
> 
> easy workaround,
> 
> rm /etc/yum.repos.d/CentOS-Base.repo
> touch /etc/yum.repos.d/CentOS-Base.repo
> 
> and the file wont get in the way anymore / anyless than
it did previously.
> 


-- 
John Newbigin
Computer Systems Officer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www
.ict.swin.edu.au/staff/jnewbigin

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-4.4 yumconf
user name
2006-10-10 23:48:03
John Newbigin wrote:
> The easiest workaround I found was to add
> 
> reposdir=
> 
> to your /etc/yum.conf [main] section.
> 
> This means you can't add other repos into that
directory but I don't 
> normally do that anyway.
> 

That would work quite well!


-- 
Karanbir Singh : http://www.karan.org/ :
2522219icq
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-4.4 yumconf
user name
2006-10-11 00:35:00
Karanbir Singh wrote:
> John Newbigin wrote:
> > The easiest workaround I found was to add
> >
> > reposdir=
> >
> > to your /etc/yum.conf [main] section.
> >
> > This means you can't add other repos into that
directory but I don't
> > normally do that anyway.
> >
> 
> That would work quite well!

You must have missed it, I suggested that here on Sept 12th:
http://lists.centos.org/pipermail/cento
s-devel/2006-September/002533.html

Greg

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )