`
zhaohaolin
  • 浏览: 1003205 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Centos 6.0 yum 更新源

 
阅读更多

Centos 6.0 yum 更新源

 

中科大(http://centos.ustc.edu.cn/)的镜像站里面有Centos 6.0 镜像了。

 

先备份一下/etc/yum.repos.d/CentOS-Base.repo

#mv /etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.bak

 

然后把/etc/yum.repos.d/CentOS-Base.repo文件改为

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update 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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

更改一下源的路径就行了。现在可以更新Centos 6.0了。

 

下面是搜狐的:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update 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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.sohu.com/centos/6.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
 
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.sohu.com/centos/6.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
 
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=http://mirrors.sohu.com/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.sohu.com/centos/6.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.sohu.com/centos/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
 
 
下面是网易163的源:
 
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update 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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/6.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/6.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/6.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.163.com/centos/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
 
 
经过测试,教育网内用中科大的源很快。外网用网易的源非常快。
分享到:
评论

相关推荐

    centos6.0配置本地yum

    在 CentOS 6.0 系统中,YUM(Yellow dog Updater Modified)是一款强大的包管理器工具,它允许用户在基于 RPM 的 Linux 发行版上自动下载、更新和安装软件包。为了确保 YUM 正常运行,必须正确配置 YUM 源,通常这些...

    CentOS 6.0安裝gcc

    ### CentOS 6.0 安装GCC 在Linux系统中,GCC(GNU Compiler Collection)是一个重要的编译器套件,支持多种编程语言如C、C++等。对于开发者来说,安装GCC是进行软件开发的基础步骤之一。本文将详细介绍如何在CentOS...

    CentOS6.0安装Oracle10g详细文档

    本文档详细介绍了如何在CentOS6.0操作系统上安装Oracle10g,这是一个非常实用的技术教程,尤其适合那些希望在最新版本的Linux发行版上部署旧版本Oracle数据库的用户。 首先,让我们深入了解CentOS6.0。这是一个基于...

    Centos6.0安装lamp

    - **操作系统**:Centos 6.0 - **内核版本**:Linux version 2.6.32-71.el6.x86_64 - **MySQL版本**:5.1.61 - **Apache版本**:httpd-2.2.15-15 - **PHP版本**:php5.3.3 #### 二、安装 MySQL 数据库 MySQL是LAMP...

    CentOS6.0 国外机器如何安装更新源

    本篇将详细介绍如何为国外的CentOS 6.0机器更换或添加新的更新源。 首先,了解`RPMForge`仓库。RPMForge是针对RHEL(Red Hat Enterprise Linux)及其克隆版如CentOS的一个第三方软件仓库,提供了大量的额外软件包,...

    CentOS 6.0安装指南

    本文档概述了 CentOS 6.0 的安装及基础配置步骤,包括下载、安装、用户管理、系统升级、桌面环境配置以及安装第三方软件源等内容。通过这些步骤,用户可以构建出一个稳定的 CentOS 6.0 系统环境。请注意,随着技术的...

    CentOS_6.0_安装教程

    3. **系统更新**:安装完成后,建议立即运行`yum update`命令,更新所有已安装软件到最新版本,提高安全性。 4. **防火墙配置**:根据安全策略,配置iptables或firewalld防火墙,设定允许的入站和出站规则。 5. **...

    CentOS 6.0 VNC远程桌面配置

    CentOS 6.0 VNC远程桌面配置 本文将指导读者如何在 CentOS 6.0 系统中配置 VNC 远程桌面,以便用户可以通过 VNC 客户端远程连接到 Linux 系统的图形界面。 一、VNC 服务器安装和配置 1. 检查 Linux 系统是否安装 ...

    关于CentOS6.0在VMware7.1.0下的安装及使用的一些记录

    标题中的“关于CentOS6.0在VMware7.1.0下的安装及使用的一些记录”涉及了两个主要的知识点:CentOS操作系统和VMware虚拟化软件。在这里,我们将深入探讨这两个方面,并结合描述和标签内容,提供一个全面的知识点概述...

    CentOS6.0图形(图解)安装教程、基本配置、网络配置、软件源配置、安装压缩、语言包定义.pdf

    例如,CentOS 6.0 发布后,每隔六个月会有小版本更新,以支持新的硬件和修复问题。此外,CentOS 社区还会根据 RHEL 的 Update 版本发布对应的更新,保持软件包级别的二进制兼容性。 3. **安装与基本配置** CentOS ...

    CentOS 6.0下vncserver安装配置

    CentOS 6.0 下 vncserver 安装配置 Centos 6.0 下 vncserver 安装配置是一种远程桌面连接解决方案。通过安装和配置 vncserver,可以实现在服务器上远程桌面连接,提高工作效率和灵活性。 一、安装必要的软件包 ...

    CentOS 6.0 安装 Oracle11gR2 文档

    在开始安装前,确保你的CentOS 6.0系统已经更新到最新版本,以修复已知的安全问题和稳定性缺陷。同时,安装必要的开发工具和库,例如GCC编译器、Perl、KDE桌面环境等,因为Oracle安装过程中可能会依赖这些组件。此外...

    RHEL6使用CentOS6的yum源

    - 编辑 `/etc/yum.repos.d/CentOS-Base.repo` 文件,将其中的 `$releasever` 替换为具体的版本号,例如 `6.0`。 3. **导入 CentOS 的 GPG 密钥**: - 从 CentOS6 机器上复制 GPG 密钥文件到 RHEL6。 - 使用 `rpm...

    Centos6.0 安装 nginx memcached

    在本文中,我们将详细介绍如何在CentOS 6.0系统上安装Nginx和Memcached。这两位主角是Web服务器Nginx和内存缓存系统Memcached,它们在提高网站性能方面发挥着重要作用。 首先,确保你的系统是最小化桌面版本的...

    CentOS6.0图形(图解)安装教程、基本配置、网络配置、软件源配置、安装压缩、语言包宣贯.pdf

    3. `yum update` 更新软件源列表,然后可以安装EPEL提供的软件。 **五、安装压缩和语言包** 1. **压缩工具**: `yum install gzip bzip2` 安装gzip和bzip2压缩工具。 2. **语言包**: 如需安装中文语言包,`yum ...

    在CentOS 6.0安装LAMP服务器

    ### 在CentOS 6.0上安装LAMP服务器 #### 一、简介 LAMP(Linux、Apache、MySQL、PHP)是一种流行的开源Web服务解决方案,它由四个主要部分组成: - **Linux**:操作系统。 - **Apache**:HTTP服务器。 - **MySQL*...

    redhat6.0_配置源使用_yum

    在Red Hat Enterprise Linux (RHEL) 6.0系统中,使用YUM(Yellowdog Updater, Modified)作为包管理器进行软件安装和更新是非常常见的。然而,由于RHEL是商业发行版,其官方源可能需要订阅服务才能访问。在这种情况...

    ( CentOS 6.0 系统 LAMP(Apache+MySQL+PHP)安装.OK

    在CentOS 6.0系统上安装LAMP环境,可以按照以下步骤进行: 1. **安装MySQL** - 使用`yum install mysql mysql-server`命令安装MySQL数据库及其服务。 - 通过`chkconfig --levels 235 mysqld on`确保MySQL服务在...

Global site tag (gtag.js) - Google Analytics