求摔跤吧爸爸 云资源百度云资源,谢谢

解决RedHat&Enterprise&Linux&6.4&需要注册才能使用yum源的问题
作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是
install pam-devel
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系统而已,没必要为此大费周章。通过度娘发现了很多解决办法,但很多办法在我电脑上行不通,才知道广大网友的环境是不一样的,所以他们的办法不一定符合自己的电脑。
下面是笔者结合网上的相关资料,针对与我相同环境的系统的解决办法。
系统:RedHat Enterprise Linux 6.4-x86_64
md5:467BA0C477CBB1B24FFD1F&&
这是下载地址:
第一步下载相关安装包
可以通过下载,这是笔者已经下载好的
第二步卸载Redhat自带的yum
-qa | grep yum | xargs rpm -e --nodeps
第三步安装下载的安装包
-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
-ivh yum-3.2.29-40.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
第四步到的
centos帮助文档&
中下载CentOS6-Base-163.repo文件,存放到/etc/yum.repos.d中
/.help/CentOS6-Base-163.repo
第五步将Centos6-Base-163.repo中的$releasever改为Centos的版本号即可
为了防止错误,也可使用我已修改好的文件
文件修改成如下即可:
CentOS-Base.repo
# The mirror
system uses the connecting IP address of the client and the
status of each mirror to pick mirrors that are updated to and
geographically close to the client.& You should
use this for CentOS updates
# unless you
are manually picking other mirrors.
mirrorlist= does not work for you, as a fall back you can try
# remarked out
baseurl= line instead.
name=CentOS-6
baseurl=/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
name=CentOS-6
- Updates -
baseurl=/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional
packages that may be useful
name=CentOS-6
- Extras -
baseurl=/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional
packages that extend functionality of existing packages
[centosplus]
name=CentOS-6
baseurl=/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib -
packages by Centos Users
name=CentOS-6
- Contrib -
baseurl=/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
第六步 yum clean
all 清除原有缓存
第七步 yum
makecache& 获取yum列表
等待,大约三分钟后出现下面提示,表示yum更改完成:
Metadata Cache
------------------------------------------
文章转载自:/dafang/p/3566708.html
原作者有个笔误,讲/etc/yum.repos.d写成了/etc/yum.repo.d
&安装的时候需要注意。
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。Red Hat Enterprise Linux 6.4配置CentOS 6.4软件源
第2页_Linux教程_Linux公社-Linux系统门户网站
你好,游客
Red Hat Enterprise Linux 6.4配置CentOS 6.4软件源
来源:Linux社区&
作者:Linux
Enterprise 6.4配置 6.4软件源另一篇:
1.&用su 命令切换到root
2.&删除rhel6.4自带的yum,命令如下:&rpm -aq|grep yum|xargs rpm -e --nodeps
3.&下载CentOS 6.4的yum,命令如下:wget /centos/6.4/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpmwget /centos/6.4/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpmwget /centos/6.4/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpmwget /centos/6.4/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
4.安装yumrpm -ivh& python-iniparse-0.3.1-2.1.el6.noarch.rpmrpm -ivh& yum-metadata-parser-1.1.2-16.el6.x86_64.rpmrpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & &
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
5.配置repo文件新建CentOS-Base.repo文件,内容为:& & [base]& & & name=CentOS-6 - Base& & & repo=os& & & baseurl=/centos/6.4/os/$basearch/& & & gpgcheck=1& & & gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6& & & & & & #released updates& & & [update]& & & name=CentOS-6 - Updates& & & baseurl=/centos/6.4/updates/$basearch/& & & gpgcheck=1& & & gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6& & & & & & #packages used/produced in the build but not released& & & #[addons]& & & #name=CentOS-6 - Addons& & & #baseurl=/centos/6.4/addons/$basearch/& & & #gpgcheck=1& & & #gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6& & & & & & #additional packages that may be useful& & & [extras]& & & name=CentOS-6 - Extras& & & baseurl=/centos/6.4/extras/$basearch/& & & gpgcheck=1& & & gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6& & & & & & & & & #additional packages that extend functionality of existing packages& & & [centosplus]& & & name=CentOS-6 - Plus& & & baseurl=/centos/6.4/centosplus/$basearch/& & & gpgcheck=1& & & enabled=1& & & gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6& & & & & & #contrib - packages by Centos Users& & & [contrib]& & & name=CentOS-6 - Contrib& & & baseurl=/centos/6.4/contrib/$basearch/& & & gpgcheck=1& & & enabled=0& & & gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6&
保存后将CentOS-Base.repo移到/etc/yum.repos.d/ 里面,命令如下:mv ./CentOS-Base.repo& /etc/yum.repos.d/
6.清除yum缓存clean yum all
7.试试能不能用 yum install gcc-c++-4.4.7-3.el62
相关资讯 & & &
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款

我要回帖

更多关于 摔跤吧爸爸国语版资源 的文章

 

随机推荐