[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