>  기사  >  운영 및 유지보수  >  centos7은 국내 yum 소스를 대체합니다.

centos7은 국내 yum 소스를 대체합니다.

王林
王林앞으로
2020-08-03 17:11:209635검색

centos7은 국내 yum 소스를 대체합니다.

구체적인 단계:

(권장 튜토리얼: centos tutorial)

1.

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

또는

mv /etc/yum/repos.d/CentOS-Base.repo{,.date -I}

2를 백업합니다. /etc/yum.repos.d. /

CentOS 5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

또는

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

또는

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

또는

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

(동영상 튜토리얼 권장 사항: 리눅스 비디오 튜토리얼 )

3. EPEL

CentOS 6

wget -O /etc/yum.repos.d/epel-6.repo http://mirrors.aliyun.com/repo/epel-6.repo

CentOS 7

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

4. 캐시를 정리하고 새 캐시를 생성

yum clean all
yum makecache

완료!


위 내용은 centos7은 국내 yum 소스를 대체합니다.의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
이 기사는 linux公社에서 복제됩니다. 침해가 있는 경우 admin@php.cn으로 문의하시기 바랍니다. 삭제