I think you need to use: ${releasever} instead of: $releasever That's because the char following the version is "_" which is allowed as part of a variable.