반응형
마주쳤던 문제
인프라 엔지니어가 아니여서 redhat리눅스 다룬 경험이 없었는데, 주말 출근하면서 redhat리눅스 새로운 것을 알게 되었습니다. redhat리눅스 저장소는 라이센스 구독이 있습니다. 그래서 라이센스 구매를 하지 않으면 리눅스 패키지를 설치하지 못합니다.
해결
참고자료: https://storycode.tistory.com/343
저장소 주소를 centos저장소로 설정하여 리눅스 패키지를 다운로드 받았습니다. 주소는 daum으로 설정했습니다.
vi /etc/yum.repos.d/daum.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.daum.net/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates
baseurl=http://ftp.daum.net/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.daum.net/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://ftp.daum.net/centos/7/centosplus/$basearch/
gpgcheck=1
gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7
redhat 라이센스 warning메세지는 안나오도록 제거했습니다.
vi /etc/yum/pluginconf.d/subscription-manager.conf
enable=0
추가 문제 해결
centos로 설정했으므로 redhat버전을 수동으로 저장소에 설정해야 합니다. 설정하지 않으면 centos버전을 가져오지 못하므로 저장소 작업이 오류가 발생합니다.
# releaseserver 예약어를 7.9로 수정
sed -i 's/rhel\/$releasever/centos\/7.9/g' /etc/yum.repos.d/docker-ce.rep
반응형
'회고모음' 카테고리의 다른 글
클래스 상속을 이용하여 if~else문 리팩토링 (0) | 2023.02.14 |
---|---|
주말에 오픈소스 업그레이드 지원을 가면서 ... (1) | 2023.02.12 |
kubernetes feature gates (0) | 2023.01.27 |
코드 줄 끝의 tab이 있어 장애발생 (0) | 2023.01.19 |
iframe을 사용하는 서비스에 만난 x-frame-options deny오류 (0) | 2023.01.17 |