想在centos7安装一个挂载远程主机的sshfs包
但是安装sshfs的时候就出现了问题
[root@qht117 yum.repos.d]# yum install sshfs
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package sshfs available.
Error: Nothing to do
用centos的源和清华源都找不到此包。
经研究发现此包是在EPEL里面的,只需要下载相应的epel配置文件就可以了,这里是阿里的epel源配置文件
EPEL:
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
另基础源文件:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
最后重建缓存就可以了
yum clean all
yum makecache