CentOS RedHat YUM 源擴充補充(32位、64位均有)

來源:互聯網
上載者:User

標籤:

一般情況下強烈建議在CentOS6下面使用YUM配置安裝LAMP環境,一些兄弟也很喜歡使用編譯的安裝方法,個人覺得如果不是對伺服器做定製,用yum安裝穩定簡單,何必去download&make&make install呢。

為centos配置rpmforge及epel源。centos官方的源其實也夠用,不過像php的一些擴充如php-mcrypt在官方源中並沒有。
rpmforge源可以在 http://pkgs.repoforge.org/rpmforge-release/中下載安裝,名為rpmforge- release-*.i686.rpm 或 rpmforge-release-*.x86_64.rpm,找最新的版本
epel源可以在http://download.fedoraproject.org/pub/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


操作實戰:
===========================================
請按我下面的操作進行:


切換預設centos源到163鏡像
http://mirrors.163.com/.help/centos.html

根據提示進行操作

 然後補充yum源,使用下面命令
32位rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64位rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 

CentOS RedHat YUM 源擴充補充(32位、64位均有)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.