概述
CentOS7更新yum源
刚安装好的CentOS默认使用的是国外的源,为了提高下载和安装软件的速度,本文将CentOS的yum源更改为阿里云的源
因为centos不支持ntsf格式的磁盘,因此需要安装ntfs-3g。
但若使用阿里云的centos7的源,会提示:没有可用软件包ntfs-3g。
因此,将yum源更改为epel。
引用如下网址解释EPEL(http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/)
EPEL (ExtraPackages for Enterprise Linux) is a volunteer-based community effort from theFedora project to create a repository of high-quality add-on packages thatcomplement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatiblespinoffs, such as CentOS and Scientific Linux.
废话不多说,正式将yum源更改为epel源
1. 先对CentOS的源进行备份
mv /etc/yum.repos/CentOS-Base.repo /etc/yum.repos/CentOS-Base.repo.bak
2.将yum源设置为阿里云的epel源
wget -O /etc/yum.repos/CentOS-Base.repohttp://mirrors.aliyun.com/repo/epel-7.repo
3. yum cleanall ###清理插件及之前的软件源
yum makecache ##生成缓存
至此,可以尽情地安装你所需要的大部分软件啦!
yum install ntfs-3g
安装成功!
最后
以上就是暴躁彩虹为你收集整理的CentOS7更新yum源的全部内容,希望文章能够帮你解决CentOS7更新yum源所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复