Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

arrangement

CentOS 7 repository 변경 본문

SEn/linux

CentOS 7 repository 변경

SEn123 2020. 7. 30. 22:59

[root@localhost ~]# cd /etc/yum.repos.d/

[root@localhost yum.repos.d]# cp CentOs-Base.repo CentOs-Base.repo.bak // 혹시 만일에 사태에 대비한 백업파일

--------------------------------------------------------------------------------------------

[base]

name=CentOS-$releasever - Base

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra

baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

[updates]

name=CentOS-$releasever - Updates

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra

baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

[extra]

name=CentOS-$releasever -Extras

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra

baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

[centosplus]

name=CentOS-$releasever -Plus  

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra

baseurl=http://ftp.daumkakao.com/centos/$releasever/centosplus/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

---------------------------------------------------------------------------------------------------------------------------

국내 저장소는 많지만 가장 많이 사용되는 저장소는 daum인거 같다.(repository 바꿔달라는 업체들 보면 kakao로 바꿔달라는 업체들이 많은...)

음... esc키 누른 후  :%s/mirror.centos.org/ftp.daumkakao.com 으로 바꾸면 손쉽게 바뀐다.

 

name : repository 이름

mirrorlist : mirror에 등록된 경로를 통해 패키지 설치및 업데이트

baseurl : 직접 repository 경로 설정

enabled : repository 활성화 여부

gpgcheck : gpgcheck 여부(패키지 변조 확인)

gpgkey : 이 키를 이용하여 패키지 변조 확인

 

[root@localhost yum.repos.d]# yum clean all

Loaded plugins: fastestmirror, langpacks
Cleaning repos: base extras updates
Cleaning up list of fastest mirrors

'SEn > linux' 카테고리의 다른 글

vi 명령어  (0) 2020.08.09
Ubuntu 20.04 기본 설정  (0) 2020.07.29
Ubuntu 20.04 설치  (0) 2020.07.29
Centos 7 apache logrotate 설정  (0) 2020.07.28
CentOS 7 vhost 설정하기  (0) 2020.07.28
Comments