红帽6.7未注册使用yum源
来源:互联网 发布:监测网络流量的软件 编辑:程序博客网 时间:2024/06/06 18:53
一、清除红帽yum源
rpm -qa|grep python-in|xargs rpm -e --nodeps
二、下载并安装四个包
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-3.2.29-40.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
三、创建/etc/yum.repos.d/CentOS-Base.repo文件
内容如下
[base]
name=CentOS-$releasever - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&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-$releasever - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
四、清除
yum clean all
五、做缓存
yum makecache
六、更新
yum update
- 红帽6.7未注册使用yum源
- 红帽企业版yum时提示系统未注册的解决办法
- 红帽 没有注册 不能 yum
- RHEL未注册无法使用yum问题解决
- RHEL未注册无法使用yum问题解决
- RHEL未注册无法使用yum问题解决
- 红帽5使用CentOS的yum源
- [运维tips]RHEL未注册无法使用yum问题解决
- RedHat未注册 无法使用yum的解决办法
- red hat 未注册不能使用yum的解决办法
- Red Hat未注册而不能使用yum问题解决方法
- RedHat未注册yum解决方法
- 配置红帽系列yum源
- 红帽7.2更换网络yum源
- 红帽7.1解决yum无法使用问题
- 未注册的RHEL yum问题
- RedHat 未注册的服务系统使用yum命令进行软件安装
- 解决redhat6.4的yum未注册无法使用的问题
- Python GUI 温度转换
- 统计热词
- Android 修改字体,跳不过的 Typeface
- MainActivity主类
- ImageLoader代码(存放SD卡)
- 红帽6.7未注册使用yum源
- AngularJS 自定义过滤器
- Fragmentxml
- 面试题07:Count the smiley faces!
- 一步一步带你搭建后台管理系统之使用requirejs整合常用前端插件
- PyTorch基本用法(九)——优化器
- 洛谷Oj-奇怪的电梯-广度优先搜索
- LoginActivityQQ登陆
- Ai challenger 场景分类: train softmax using tfrecord