[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

And when will enabled=0 be useful? Why is there such an option?

link|improve this question

57% accept rate
feedback

1 Answer

up vote 2 down vote accepted

They are both just yum variables which are automatically completed for you.

  • $releasever is release version (RHEL 4, Centos 5, etc)
  • $basearch is the base architecture (32bit, 64bit, etc)

Enable = 0 will preventing you to use this repository.

Regards

link|improve this answer
I still don't know how's $releasever assigned ... – yum Mar 15 '11 at 9:23
If i'm not mistaken it derives the $releasever value from the version number of the package configured as "distroverpkg" (actually, whatever "provides" that in RPM parlance) in /etc/yum.conf, and $basearch from a call to the operating system's uname(2) function. – Bart De Vos Mar 15 '11 at 9:29
@TiZon you are right. – Sacx Mar 15 '11 at 9:38
'enabled' is useful is you want to do a one-off install of a package, but not use this repository for anything else. – Coops Mar 15 '11 at 11:06
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.