刚安装好的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
安装成功!