Page 1 of 1

$releasever in yum.conf

Posted: Sat Jul 29, 2006 3:42 pm
by cjharman
Hey Guys...

Just a question here... First of all, my yum.conf file works for ART... but when I use this in my yum.conf

Code: Select all

[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/$releaseverES/

[atomic-app-vault]
name=Atomic Rocket Turtle - $releasever - Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/

[psa-8.0]
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 8.0 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-8.0/$releaseverES/
$releasever always ends up being 3.3 ... so, I just replace $releasever with 3 ... where is the variable $releasever set at? and is there any consiquenses to altering it??

so, enquiring mind wants to know!!! :o)

Posted: Sun Jul 30, 2006 7:40 am
by breun
What OS are you running? The instructions tell you to replace $releasever with 3ES on CentOS/RHEL 3 or with 4ES if you're on CentOS/RHEL 4.

Posted: Sun Jul 30, 2006 11:45 am
by cjharman
Hey Breun... I am running centos 3.3 ...
The instructions tell you to replace $releasever with 3ES
- yeah.... LOL... i guess I was just curious.. cause if you don't replace that... 3.3 is what the value of the variable $releasever is for me... I have YUM working just fine :o)

THanks for the reply!
Joe

Posted: Sun Jul 30, 2006 11:52 am
by breun
I believe $releasever is parsed from /etc/*-release. If you're running CentOS 3 don't replace $releasever with 3 as that'll get you packages meant for Fedora Core 3. Use 3ES instead.