반응형
긴 설명보다는 아래 예제를 보면서 따라하는 것이 좋을 듯~~~
$ cd /etc/yum.repos.d/ $ cat << EOF > my-example.repo [rhel-8-for-x86_64-baseos-rpms] name=rhel-8-for-x86_64-baseos-rpms baseurl=http://10.10.12.10:8080/8-4/rhel-8-for-x86_64-baseos-rpms enabled=1 gpgcheck=0 [rhel-8-for-x86_64-appstream-rpms] name=rhel-8-for-x86_64-appstream-rpms baseurl=http://10.10.12.10:8080/8-4/rhel-8-for-x86_64-appstream-rpms enabled=1 gpgcheck=0 EOF ## ## 위와 같이 repository를 추가했다면, 잘 추가되었는지 repository list를 출력해본다. ## ## Case: yum 명령을 사용하는 경우 $ yum repolist ... 중간 생략 ... rhel-8-for-x86_64-baseos-rpms rhel-8-for-x86_64-appstream-rpms ... 중간 생략 ... ## Case: dnf 명령을 사용하는 경우 $ dnf clean all $ dnf repolist ...
'CentOS' 카테고리의 다른 글
스터디할 때 참고할 만한 Web Docs (0) | 2022.08.12 |
---|---|
Hugepage 설정 절차 (0) | 2022.08.02 |
OpenStack, OCI, AWS 에서 VM Instance를 위한 UserData 설정 (init-cloud 스크립트) (0) | 2022.06.21 |
Install Ansible AWX (version 17.1.0) (0) | 2021.11.16 |
How to use Ansible and Playbook (0) | 2021.11.12 |