게시물 234건
   
[RHEL7.6] subscription 등록후 repository 구성 [ repo / yum / ]
글쓴이 : theko 날짜 : 2019-07-09 (화) 15:03 조회 : 170
[root@localhost ~]# subscription-manager register  --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: duckho.lee0@rockplace.co.kr
Password:
The system has been registered with ID: 50095a24-bf19-42db-885a-9ecc1ff9f07c
The registered system name is: localhost.localdomain
[root@localhost ~]#



[root@localhost rhel7]# mkdir /root/rhel7
[root@localhost rhel7]# cd /root/rhel7
[root@localhost rhel7]# reposync .
// 파일다운로드

# createrepo  rhel-7-server-rpms/
Spawning worker 0 with 24397 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@localhost rhel7]#





스크립트
#!/bin/bash
for repo in \
   rhel-7-server-rpms \
   rhel-7-server-extras-rpms \
   rhel-7-server-ansible-2.6-rpms \
   rhel-7-server-ose-3.11-rpms
do
   reposync --gpgcheck -lmn --repoid=${repo} --download_path=/repos
   sleep 5
   createrepo -v /repos/${repo} -o /repos/${repo}
done





이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com