CentOS6.4配置163的yum源
来源:互联网 发布:网络大电影用户分析 编辑:程序博客网 时间:2024/05/17 21:53
摘自:http://www.hiceon.com/topic/centos-6-config-163-yum/
1.下载repo文件
- wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
2.备份并替换系统的repo文件
- [root@localhost ~]# cd /etc/yum.repos.d/
- [root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak
- [root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo
3.执行yum源更新
- [root@localhost ~]# yum clean all
- [root@localhost ~]# yum makecache
- [root@localhost ~]# yum update
另外和种办法好用:摘自:http://www.ctyun.cn/bbs/forum.php?mod=viewthread&tid=1023&page=1#!/bin/sh# install epelsu -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6# install rpmfusionsu -c 'yum localinstall -y --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/x86_64/rpmfusion-nonfree-release-6-1.noarch.rpm'# update base repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupwget http://mirrors.163.com/.help/CentOS6-Base-163.repomv CentOS6-Base-163.repo /etc/yum.repos.d/CentOS-Base.repoyum install -y yum-prioritiesyum makecache# updateyum update -yrpm源:摘自:http://www.linuxidc.com/Linux/2012-06/62964.htmrpmforge源可以在 http://pkgs.repoforge.org/rpmforge-release/中下载安装,名为rpmforge-release-*.i686.rpm 或 rpmforge-release-*.x86_64.rpm,找最新的版本
epel源可以在http://mirrors.ustc.edu.cn/Fedora/epel/6/ 中找到,32系统在i386文件夹中,64位的在x86_64文件夹中,名为epel-release-6-*.noarch.rpm,找最新的版本
这里以32位系统为例子,
- #如果提示The requested URL returned error: 404,请自行换成最新的版本
- rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
- rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
摘自:http://panguohui.blog.51cto.com/1866059/827987首先,安装对应的Release档案:rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm接着,更新套件库:yum update更新后,可以透过 yum repolist 看到套件库清单中已经有一个新的套件库,名称为 epel
0 0
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- CentOS6.4配置163的yum源
- centos6.4配置163 yum源的方法
- centos6.4配置163 yum源的方法
- 配置CentOS6的yum源
- 配置CentOS6 yum源
- RedHat6配置CentOS6的yum源方法
- 配置RHEL6使用CentOS6的yum源
- centos6.4配置本地源yum
- Centos6.4 下puppet yum源配置
- Centos6.4 本地yum源配置
- Centos6.4 本地yum源配置
- linux图形界面切换到字符界面
- 字符编码笔记:ASCII,Unicode和UTF-8
- Oracle connect by start with clause
- 我的cocos2d-x学习之路
- 打开Linux ftp服务,如:vsftpd: unrecognized service
- CentOS6.4配置163的yum源
- Android ListView 优化
- cocos2d-x中使用ScrollView实现滑屏效果
- 查看某个Session的统计数据
- O2O口号容易运营难
- linux下批量替换文件内容
- (读书笔记)C缺陷与陷阱 第一、二章
- java获取当前日期的前一天日期与字符串日期之间的转换
- Android自定义属性