Create my own repository on RedHat 6
Create my own repository on Linux RedHat 6
????????????? ??????????? RedHat ???????????? ?????????? ????? ??????????? ?????? yum ???? Internet ?????? ?????????????????? ???????????? Repository ?????????????? ???????? Second Repository ?????? ???????????
step 1. ????? mount cdrom ?????????
#mkdir /mnt/dvd
#mount /dev/cdrom /mnt/dvd
step 2. ????? ??????? Package createrepo*.rpm ??? cdrom ?????? mount
#yum localinstall /mnt/dvd/Server/createrepo*.rpm
step 3. ????????????? directory ????????? Package ??? file ????? ??????
#mkdir /myrepo/
#cd /myrepo
#cat /mnt/dvd/*/repodata/*.xml >> mycomps.xml
#vim mycomps.xml
????????? ??? ????????? mycomps.xml ?????????? ????? ?????????????????????? <comps></comps> ??????????????????? ??? ??????? ?? <comps>??? </comps> ??? ???????????????
step 4. ????? copy ???? ???????????????? ?????????????????????????
#cp -av /mnt/dvd .
#createrepo -g mycomps.xml .
#vim /etc/yum.repos.d/rhel60-dvd.repo
???????????????????????????
[myrhel6]
name=Red Hat Enterprise Linux x86_64
baseurl=file:///myrepo
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
??????? ?????????? ???????????????? Install Packet ????? ????????????? ?????????? Online ??????? ????? Download Packet ???????????? ??? Internet ???????
#yum install <packet>
Good luck
alternative link download