当运行yuminstall gcc-c++时显示
已加载插件:fastestmirror,product-id, search-disabled-repos, subscription-manager
This system is notregistered to Red Hat Subscription Management. You can use subscription-managerto register
yum如果不更新有些功能是不能用的
步骤:
1.删除yum
rpm -qa|grepyum|xargs rpm -e --nodeps
2.检查yum插件是否删干净
rpm -qa | grep yum
什么都不出现就表示删干净了
4.yum clean all 清除缓存
然后你就可以安装你想安装的东西啦!
运行yum install gcc-c++,成功安装!