This step is working for GCC 5.1. For newer version, change FedoraCore repo.
Add repo fedora and name it as warning:fedora (don't forget to disable it, so that it won't conflict with others)
# cat << EOF > /etc/yum.repos.d/Fedora-Core23.repo
[warning:fedora]
name=fedora
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-23&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=https://getfedora.org/static/34EC9CBA.txt
Ensure that enabled=0 is placed in there. We don't want to messed up with other dependency in the system!
Now we ready to install GCC 5.1
# yum install gcc --enablerepo=warning:fedora
Check!
gcc (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
He he (helium helium)!!
No comments:
Post a Comment