为 CentOS 打上 EPEL 扩展源

最近想在 CentOS 上安装 wine,却发现在默认的 repo 里边没有。一番搜索后得知 CentOS 的源中没有 wine, 另辟蹊径的方法是安装 EPEL。那什么事 EPEL 呢,官方的答案是 Extra Packages for Enterprise Linux,也就是为企业级 Linux 提供的额外软件源,兼容 RHEL,CentOS,Scientific Linux。

安装方法如下:

For EL5 32位:

su -c ‘rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm’

su -c ‘yum install foo’

For EL5 64位:

su -c ‘rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm’

su -c ‘yum install foo’

 

For EL6 32位:

su -c ‘rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm’

su -c ‘yum install foo’

 

For EL6 64位:

su -c ‘rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm’

su -c ‘yum install foo’

 


related post

Leave a Reply

Your email address will not be published. Required fields are marked *