Quote:
Originally Posted by tommyr1216
$releasever will be the release number of your Fedora install. That is, if you're running Fedora 8, $releasever=8. If you're running Fedora Core 5, $releasever=5.
$basearch can be determined by running "uname -i"
$distribution will be "fedora-release" (not 100% sure about that one, none of my repository configs use it.)
|
$releasever is actually one of these:
rpm -q --queryformat '%{VERSION}' redhat-release
rpm -q --queryformat '%{VERSION}' fedora-release
rpm -q --queryformat '%{VERSION}' centos-release
Sorry I guess I wasn't that clear on my question.
My question isn't where it get's the info...I just wanted to see what all the environment variables are set to on a distro so I can use it to check distros like OEL5, CentOS 5, etc.
$releasever is not setup on bash prompt so I wanted to know if I could drive yum to set them up for me on the fly.