티스토리 뷰
CentOS8은 2021년 12월 31일부로 EoS 되었습니다.
이에 따라, CentOS7의 공식 repository의 mirrorlist인 mirrorlist.centos.org와 미러사이트 mirror.centos.org는 더 이상 사용이 불가합니다.
1. CentOS 8 yum repository 변경
CentOS 8 설치 후 기존 repository를 사용하려고 하면, 오류가 발생합니다.
기존 repository를 사용할 수 없기 때문에, CentOS 8을 계속 사용하기 위해서는 yum repository를 변경해주어야 합니다.
기존 사용하던 yum reposiroty의 주소는 http://mirrorlist.centos.org였으나,
CentOS8의 EOS로 인해 repository의 주소가 닫혔으므로
새로운 yum repository를 등록해 줍니다.
새 yum repository의 주소는 http://vault.centos.org/입니다.
1. yum repository 변경
변경 방법은 아래와 같습니다.
~]# cd /etc/yum.repos.d /etc/yum.repos.d ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* /etc/yum.repos.d ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* |
명령어 입력 후에 표면상으로 달라지는 것은 없으나,
repo 파일을 보면 달라져 있습니다.
/etc/yum.repos.d ~]# cat CentOS-Base.repo -------------------------------------- # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the #mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [BaseOS] name=CentOS-$releasever - Base #mirrorlist=http://#mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial -------------------------------------- |
기존 repo 연결자인 mirrorlist= 부분은 주석처리 되어
baseurl= 부분이 적용됩니다.
2. yum repository 변경 적용
변경된 패키지 저장소를 호출하여 정상 호출되는지 확인합니다.
/etc/yum.repos.d ~]# dnf repolist |
3. yum repository 사용
CentOS8의 기본 제공 패키지를 설치하고, 업데이트를 실행해 줍니다.
/etc/yum.repos.d ~]# dnf -y install epel-release Repository AppStream is listed more than once in the configuration Repository BaseOS is listed more than once in the configuration Repository extras is listed more than once in the configuration 마지막 메타 데이터 만료 확인 : 0:00:15 전에 2024년 11월 17일 (일) 오후 09시 47분 23초. 종속성이 해결되었습니다. ========================================================================================= 꾸러미 아키텍처 버전 리포지토리 크기 ========================================================================================= Installing: epel-release noarch 8-11.el8 extras 24 k 거래 요약 ========================================================================================= 설치 1 꾸러미 총 다운로드 크기 : 24 k 설치 크기 : 35 k 패키지 다운로드중: epel-release-8-11.el8.noarch.rpm 20 kB/s | 24 kB 00:01 ----------------------------------------------------------------------------------------- 합계 20 kB/s | 24 kB 00:01 경고: /var/cache/dnf/extras-841cbf2e55745cba/packages/epel-release-8-11.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY CentOS-8 - Extras 1.6 MB/s | 1.6 kB 00:00 GPG키 0x8483C65D를 불러옵니다: 사용자 : "CentOS (CentOS Official Signing Key) <security@centos.org>" GPG 지문: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D 출처 : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 성공적으로 가져온 키 트랜잭션 점검 실행 중 트랜잭션 검사가 성공했습니다. 트랜잭션 테스트 실행 중 트랜잭션 테스트가 완료되었습니다. 거래 실행 중 준비 중입니다 : 1/1 Installing : epel-release-8-11.el8.noarch 1/1 스크립틀릿 실행: epel-release-8-11.el8.noarch 1/1 확인 중 : epel-release-8-11.el8.noarch 1/1 설치됨: epel-release-8-11.el8.noarch 완료되었습니다! |
[root@localhost yum.repos.d]# yum -y update Repository AppStream is listed more than once in the configuration Repository BaseOS is listed more than once in the configuration Repository extras is listed more than once in the configuration 마지막 메타 데이터 만료 확인 : 0:00:27 전에 2024년 11월 17일 (일) 오후 09시 47분 57초. 종속성이 해결되었습니다. ========================================================================================= 꾸러미 아키텍처 버전 리포지토리 크기 ========================================================================================= Installing: centos-linux-release noarch 8.5-1.2111.el8 BaseOS 22 k 대체 centos-release.x86_64 8.0-0.1905.0.9.el8 fwupd x86_64 1.5.9-1.el8_4 BaseOS 2.8 M 대체 dbxtool.x86_64 8-5.el8 kernel x86_64 4.18.0-348.7.1.el8_5 BaseOS 7.0 M kernel-core x86_64 4.18.0-348.7.1.el8_5 BaseOS 38 M kernel-modules x86_64 4.18.0-348.7.1.el8_5 BaseOS 30 M Upgrading: dnf-plugin-spacewalk noarch 2.8.5-11.module_el8.1.0+211+ad6c0bc7 AppStream 24 k libdrm x86_64 2.4.106-2.el8 AppStream 167 k libfastjson x86_64 0.99.9-1.el8 AppStream 38 k libmaxminddb x86_64 1.2.0-10.el8 AppStream 33 k libmspack x86_64 0.7-0.3.alpha.el8.4 AppStream 70 k libxkbcommon x86_64 0.9.1-1.el8 AppStream 116 k ... |
'IT' 카테고리의 다른 글
CentOS 7 EOS와 yum repo 변경 (0) | 2024.07.20 |
---|
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 상가
- 확정일자
- 경매
- 전세보증금 반환보증보험
- 전세사기 피해자
- 사전청약
- 임대차3법
- 보금자리론
- 재건축
- 재개발
- 어린이집 예방접종증명서 발급
- 조정대상지역
- 특별보금자리론
- 전세권
- 전세사기
- 인도명령
- 취득세
- 계약갱신청구권
- 명도소송
- 양도소득세 비과세
- 안심전세앱
- 재산세 조회
- 양도소득세
- 재산세
- 티스토리챌린지
- 주거급여
- 전월세상한제
- 분양가상한제
- 오블완
- 임대소득세
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함