You can specify the version of the package to install along with the name, e.g. "gcc-4.7.2". But that won't help since 4.7.2 is not in the F18 repositories; fix your code.
Install specific version of gcc using yum
Question
How do I ask yum
to install specific version of gcc
? When I run yum install gcc
on
fc17 I get gcc 4.7.2. My software compiles just fine using this version of gcc. Recently I was forced to move to fc18, when I run yum install gcc
I get gcc 4.8, and my software fails to compile with this version of gcc. Since so I'm forced to manually download the gcc-4.7.2.fc18.rpm and to resolve dependencies manually. Is there a way to ask yum
to install a specific version of gcc?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow