본문 바로가기

728x90

yum repository

CentOS Yum Repository 서버를 구축하는 방법 CentOS Yum Repository 서버를 구축하는 방법 CentOS Yum Repository 서버를 구축하는 것은 패키지 관리와 시스템 업데이트를 위해 중요한 작업입니다. 웹 서버 설치 (Apache HTTPD 예시) Yum Repository를 호스팅하기 위해 웹 서버를 설치합니다. 아파치 웹 서버를 설치하는 방법은 다음과 같습니다. repository 구축을 위한 필수 패키지 다운로드 createrepo 설치 yum install -y createrepo yum-utils Yum Repository 디렉터리 구조 설계 cd /app/repo_root/reop $ tree -L 5 . └── repo ├── centos │ ├── 7 -> 7.9.2009 │ ├── 7.9.2009 │ │ ├──.. 더보기
CentOS 7에서 yum 저장소(repository)를 변경하는 방법 CentOS 7에서 yum 저장소(repository)를 변경하는 방법 테스트 환경 운영체제 버전 정보 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 1. 기존 저장소 확인 현재 활성화된 저장소 목록과 상태를 확인할 수 있습니다. yum repolist 2. 원하는 저장소 찾기 변경하려는 새로운 저장소를 찾아야 합니다. CentOS 기본 저장소 이외의 저장소를 사용하려면 해당 저장소의 URL을 알아야 합니다. 3. 기존 저장소 비활성화 저장소를 변경하려면 먼저 현재 사용 중인 저장소를 비활성화해야 합니다. 저장소의 설정 파일을 편집하여 enabled=0으로 설정하면 됩니다. 예를 들어, /etc/yum.repos.d/CentOS-Base... 더보기
CentOS 8에서 Yum Repository 서버를 구축하는 방법 CentOS 8에서 Yum Repository 서버를 구축하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 Repository 서버 구축 epel 패키지 설치 yum install -y epel-release createrepo 패키지 설치 yum install -y yum-utils createrepo 웹 서버(apache) 패키지 설치 yum install -y httpd mod_ssl 리포지토리 디렉터리 만들기(yum 저장소) mkdir -p /apps/repo_root/repo mkdir -p /apps/repo_root/repo/centos/7/{extras,isos,os,updates} mkdir -p /apps/repo.. 더보기

728x90