LINUX create YUM Repository in LOCAL Guide
step 1 : create Package directory
[root@maria yum.repos.d]# mkdir -p /Redhat7/Package
step 2 : copy package in CD(redhat OS immage Package Folder) to create directory in
[root@maria Packages]# pwd
/run/media/ahn/RHEL-7.3 Server.x86_64/Packages
[root@maria Packages]# cp * /Redhat7/Package/
step 3 : unzip comps.zml.gz file and
[root@maria repodata]# pwd
/run/media/ahn/RHEL-7.3 Server.x86_64/repodata
[root@maria repodata]# cp *comps*xml.gz /Redhat7/
[root@maria repodata]# mv /Redhat7/*comps*xml.gz /Redhat7/comps.xml.gz
[root@maria repodata]# gzip -d /Redhat7/comps.xml.gz
step 4 : pakage install ( this package installed ahead)
[root@maria Package]# rpm -ivh deltarpm-**.rpm python-deltarpm* createrepo*
step 5 : repo URL configure
[root@maria Redhat7]# vi /etc/yum.repos.d/local.repo
[Package]
name=RedHat Linux Local Repository
baseurl=file:///Redhat7/
enabled=1
gpgcheck=0
step 6 : command createrepo
[root@maria Redhat7]# pwd
/Redhat7
[root@maria Redhat7]# createrepo -g comps.xml .
Spawning worker 0 with 4751 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
step 7 : Move already existing repo file elsewhere
[root@maria yum.repos.d]# pwd
/etc/yum.repos.d
[root@maria yum.repos.d]# mkdir Repo
[root@maria yum.repos.d]# mv CentOS-* Repo/
[root@maria yum.repos.d]# ls
local.repo Repo
step 8 : check yum list command
[root@maria yum.repos.d]# yum list
step 9 : check yum install command (ex : telnet service package install)
[root@maria yum.repos.d]# rpm -qa | grep telnet
[root@maria yum.repos.d]# yum install telnet
사업자 정보 표시
(주)블루원 | 김홍태 | 서울특별시 용산구 원효로 4가 135 금홍 2빌딩 | 사업자 등록번호 : 106-86-76684 | TEL : 02-3272-7200 | Mail : support_ora@blueone.co.kr | 통신판매신고번호 : 호 | 사이버몰의 이용약관 바로가기
'OS - LINUX' 카테고리의 다른 글
[TD-LINUX] Cent / Redhat 7 Install and Initial setting (0) | 2017.11.17 |
---|---|
[TD-LINUX] Cent / Redhat 7OS(LINUX) PCS CLUSTER LINUX (0) | 2017.11.17 |
[TD-LINUX] configure High Availability(FARM_REPLECATION) BY SAFEKIT (0) | 2017.11.17 |
[TD-LINUX] To add a disk to an existing volume group (0) | 2017.10.18 |
[TD-LINUX] Network Bonding.docx (0) | 2017.10.18 |