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[root@stonex ~]#  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. 自己堅持不懈的努力,修改內核或自己根據系統內核重新編譯你需要的軟件,如能從網上找到現成的那是最好的.對于這個途徑,想必對 ...
一周排行
  • NO.107 年底總結2013,禅道的這一年。有圖有真相
    (禅道團隊部分成員合影)  台曆就剩下最後一頁了,這一年過得真是快. 年終盤點的時間,不免 ...
  • ########安裝apr######### #tar zxvf apr-1.3.6.tar.gz #cd apr-1.3.6 #./configure--prefix=/usr/local/apr #make&am ...
  • 設置浏覽器主頁步驟
    設置浏覽器主頁步驟主頁:http://www.2345.com/?kokregister ...
  •      在上一篇博文我描述了在單機linux上安裝hadoop,網址:http://my.oschina.net/hetiangui/blog/142897,這裏我主要描述下hadoop的用戶權限管理.       ...
  • 一.運維自動化:ansible.saltstack   1.安裝Ansible:     rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-rel ...
  • 作者:gfree.wind@gmail.com博客:blog.focus-linux.net   linuxfocus.blog.chinaunix.net 另外有一點要注意的是,由于likely定義時用的常量是1, ...
  • mybatis整合spring   之  基于接口映射的多對一關系
            mybatis整合spring 之  基于接口映射的多對一關系.      ...
  • 某組伺服器上的sqlplus在執行定時更新SQL腳本時,中文出現亂碼.一開始找錯了問題方向:從SQL更新腳本處理的源頭開始,首先對windows下的編輯器生成的腳本文件做各種編碼的嘗試,然後又在vi編輯器裏面進行字符 ...
  • iPhone的專案接近于審核階段了,公司終于意識到需要證書了...整理個申請流程,等證書申請下來之後若遇到問題1. 開發賬號申請(development)參考:http://blog.csdn.net/margin_ ...
  • 相關文章:一.PHP+新浪微博開放平台+新浪雲平台(SAE)方案的基礎二.建立微博應用的過程三.PHP SDK中Demo程序簡析四.進一步學習的走向和有用的資源五.必須交待的幾個問題[PDF全文下載] 在初步掌握微博 ...