CentOS6 YUM

# 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
經過測試,教育網內用中科大的源很快。外網用網易的源非常快。

附加google chrome源

[google] name=Google - i386 baseurl=http://dl.google.com/linux/rpm/stable/i386 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
安裝穩定版本: sudo yum install google-chrome-stable 安裝測試版本: sudo yum install google-chrome-beta 安裝不穩定版本: sudo yum install google-chrome-beta ln -s /lib/libbz2.so.1 /opt/google/chrome/libbz2.so.1.0
chcon -t usr_t /opt/google/chrome/chrome-sandbox
更多相關文章
  • redhat6.4配置centos6 yum替換 1.卸載掉系統redhat自帶的yum  rpm -qa |grep yum |xargs rpm -e --nodeps 2 下載相關的centos yum插件  主要有python-iniparse-0.3.1-2.1.el6.noarch.rp ...
  • 通過 yum 方式安裝的好處是便于管理,可以通過 yum update 命令來升級程序版本. 安裝 ppp 和 iptalbes yum install ppp iptables 安裝 pptpd 加入 yum 源加入 yum 源 rpm -Uvh http://poptop.sourceforge ...
  • centos6.3更新yum源
    centos6.3更新yum源(2012-08-10 21:20:08)轉載▼ 標簽:centosyumit 分類: CentOS # 備份# mv /etc/yum.repos.d/CentOS-Base.repo{,.bak}# 修改# vi /etc/yum.repos.d/CentOS-Ba ...
  • 1.將rpm包拷貝到一個目錄比如rpms2.建立資源庫索引首先要安裝 createrepo軟件yum install createrepo然後建立索引 createrepo -o centos6 rpms注:-o爲目標dir rpms爲軟件源父目錄3.建立ftp,將軟件源發布,放到ftp上.比如放到 ...
  • 但是今天裝了CentOS6.5,直接yum install nginx不行,要先處理下源,下面是安裝完整流程,也十分簡單:CentOS 6,先執行(過程慢點,其實可以手動下載,然後在本地運行):rpm -ivh http://nginx.org/packages/centos/6/noarch/RP ...
  • 當然,首先要求是可以聯網的CentOS系統,因爲yum安裝需要互聯網連接.1.爲了追加 nginx 的 yum 倉庫,需要創建一個文件 /etc/yum.repos.d/nginx.repo,並將下面的內容複制進去:    [nginx]       name=nginx repo       ba ...
  • 第1步.yum安裝mysql[[email protected] ~]#  yum -y install mysql-server安裝結果:Installed:    mysql-server.x86_64 0:5.1.73-3.el6_5                                     ...
  • RHEL6.3安裝.使用CentOS 6.3的yum 如果你有對你的server做優化或是需要安裝其他"好"軟件或是更新系統和軟件需求,一般有兩種途徑: 1. 自己堅持不懈的努力,修改內核或自己根據系統內核重新編譯你需要的軟件,如能從網上找到現成的那是最好的.對于這個途徑,想必對 ...
一周排行