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.

I would like to install the gcc-c++ package on RHEL 6. When I search for it with yum, I get No matches found.

Searching for it on the web, it seems that I need the workstation sub-channel. However, I have no idea how to get it. Do I need to buy a workstation subscription for that? It is not listed in yum repolist all.

I used the Subscription Manager to activate the license, most documentation only applies when using RHN classic, so I'm a bit lost right now.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Ok, the repository has nothing to do with the workstation sub-channel, it's called rhel-6-desktop-optional-rpms. After I enabled that in the /etc/yum.repos.d/redhat.repo, yum found the gcc-c++ package.

share|improve this answer
    
You may also enable it using the command sudo yum-config-manager --enable rhel-6-desktop-optional-rpms. –  crayzeewulf Feb 11 at 5:49

How about installing it from your DVD?

For my RHEL 6.4, the RPM file can be found under the folder X:\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.