Saturday, April 7, 2012

Install g++ on CentOS

1. You must install RPMForge
The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.

Install DAG's GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Verify the package you have downloaded
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
 
<!> Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the md5sum of the key injection package, and trust Dag, et al., then it should be as safe as your trust of them extends.

Install the package
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
 
This will add a yum repository config file and import the appropriate GPG keys.

2. Using yum
# yum install gcc-c++

No comments: