Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Today installed CentOs 6.4 fresh new on my workstation.

I wanted to install g++. With my surprise I didn't succeed by using

 yum install gcc-g++

The thing is that even by doing a search I don't get any result.

 # No package available
 yum search g++

On top of that I installed successfully gcc.

Do you know whether I am using the wrong package name or what should I do?

share|improve this question

3 Answers 3

up vote 37 down vote accepted

Have you tried:
yum install gcc-c++

share|improve this answer

I was successful with on CentOS 6.4

    yum install gcc-c++.x86_64
share|improve this answer
    
Also worked for me on CentOS 7. –  Steve HHH Nov 11 '14 at 0:45

One thing I have realized is that many packages give that error because package names are usually different than most tutorials out there on the net.

Normally when I get stuck I just use this command:

yum list | grep <packagename>

This gets a list of all packages like the one we are searching for and it always lists the full name which we should use to install the package.

Also the <packagename> is case-sensitive, geoip and GeoIP will return different list of packages.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.