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 (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, 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.repo http://mirrors.aliyun.com/repo/epel-7.repo


3. yum clean all              ###清理插件及之前的软件源

    yum makecache        ##生成缓存

至此,可以尽情地安装你所需要的大部分软件啦!

yum install ntfs-3g

安装成功!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值