-
有时候使用 yum 源,如
yum search ...
时,会出现 Skipping unreadable repository '/etc/yum.repos.d/epel.repo',但是 root 下可以执行 -
查看文件/权限
ls -alZ /etc/yum.repos.d/
-
发现该目录下用户和属组都是 root,但是 CentOS-Base.repo 权限是 644,epel.repo 权限是 600
root root CentOS-Base.repo 为 644,epel.repo 为 600 -
手动修改权限
chmod 644 /etc/yum.repos.d/epel.repo
yum install -y epel-release