1. Background description
[[email protected] ~]# yum-y install GCC
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Nothing to do
2. Solutions
Redhat This error is due to not registering a portal, so just update the source of Yum.
2.1 Entering the Yum configuration directory
[Email protected] ~]# cd/etc/yum.repos.d/
[email protected] yum.repos.d]# LL
Total 16
-rw-r--r--1 root root 561 Dec Rhel-debuginfo.repo
-rw-r--r--1 root root 222 Dec Rhel-source.repo
2.2 Backing up files Rhel-debuginfo.repo
[Email protected] yum.repos.d]# MV Rhel-debuginfo.repo Rhel-debuginfo.repo_bak
2.3 Download Centos-base.repo File
[Email protected] yum.repos.d]# wget Http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
--2014-12-23 10:28:59--Http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
Resolving docs.linuxtone.org ... 203.74.150.88
Connecting to docs.linuxtone.org|203.74.150.88|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:1426 (1.4K) [Application/octet-stream]
Saving to: ' Centos-base.repo '
100%[===================================================>] 1,426--.-k/s in 0s
2014-12-23 10:29:01 (143 MB/s)-' Centos-base.repo ' saved [1426/1426]
2.4 Changing the Centos-base.repo name is called Rhel-debuginfo.repo
[Email protected] yum.repos.d]# MV Centos-base.repo Rhel-debuginfo.repo
3. Testing
[Email protected] yum.repos.d]# yum-y install GCC Flex
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Package flex-2.5.4a-41.fc6.i386 already installed and latest version
......
Updated:
Gcc.i386 0:4.1.2-55.el5
Dependency Updated:
......
complete!
This system was not a registered with the portal. Workaround