RedHat Enterprise Linu…

RedHat Enterprise Linux 6.4 使用Centos 6 的yum 源問題
2015.04.09
一、問題描述
有時在使用RedHat 系統進行安裝某些軟件時,會出現如下提示:
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register. Setting up Install Process Nothing to do
二、問題解釋
由於redhat 的yum 源需要註冊費,而一般我們使用的redhat 系統僅僅是實驗用處,沒有必
要通過正規手段解決。所以使用如下方法解決yum 源的問題。
三、問題解決
查看內核:
[root@dev5 yum.repos.d]# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc
version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013
[root@dev5 yum.repos.d]# uname -r
2.6.32-431.el6.x86_64
[root@dev5 yum.repos.d]# uname -a
Linux dev5 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64
x86_64 GNU/Linux
查看版本:
[root@dev5 yum.repos.d]# lsb_release -a
LSB
Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd
64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Release: 6.5
Codename: Santiago
[root@dev5 yum.repos.d]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
[root@dev5 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@dev5 yum.repos.d]# file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses
shared libs), for GNU/Linux 2.6.18, stripped
[root@dev5 yum.repos.d]# file /bin/cat
/bin/cat: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared
libs), for GNU/Linux 2.6.18, stripped
ONE、下載安裝包並安裝
http://www.163disk.com/fileview_2535033.html
解壓後,得到四個rpm 包
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-3.2.29-40.el6.centos.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
卸載RedHat 自帶的yum
rpm -qa | grep yum | xargs rpm -e --nodeps
安裝上面那四個rpm
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
TWO、下載yum 源文件
http://www.163disk.com/fileview_2535034.html
得到
rhel-source.repo
把它放到/etc/yum.repo.d 中,如果有原來的yum 源文件,請更改掉原來的yum 源的文件名,
把下載下來的改成系統默認的yum 源文件名。
THREE、
去掉原來的緩存yum clean all
獲取yum 列表yum makecache
成功現象:
[root@dev5 yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Determining fastest mirrors
base | 3.7 kB 00:00
base/group_gz | 216 kB 00:00
base/filelists_db | 6.1 MB 00:17
base/primary_db | 4.6 MB 00:13
base/other_db | 2.8 MB 00:08
extras | 3.4 kB 00:00
extras/filelists_db | 31 kB 00:00
extras/prestodelta | 605 B 00:00
extras/primary_db | 30 kB 00:00
extras/other_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/filelists_db | 1.8 MB 00:05
updates/prestodelta | 258 kB 00:00
updates/primary_db | 2.7 MB 00:07
updates/other_db | 25 MB 01:10
xcat-2-core | 2.5 kB 00:00 ...
xcat-2-core/filelists_db | 22 kB 00:00 ...
xcat-2-core/primary_db | 24 kB 00:00 ...
xcat-2-core/other_db | 1.9 kB 00:00 ...
xcat-dep | 2.5 kB 00:00 ...
xcat-dep/filelists_db | 36 kB 00:00 ...
xcat-dep/primary_db | 27 kB 00:00 ...
xcat-dep/other_db | 13 kB 00:00 ...
Metadata Cache Created
注:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/
現在就成功了!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章