{"id":751,"date":"2017-08-18T02:43:06","date_gmt":"2017-08-17T19:43:06","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=751"},"modified":"2017-08-18T02:43:06","modified_gmt":"2017-08-17T19:43:06","slug":"centos-dvd-local-repo-creation","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2017\/08\/18\/centos-dvd-local-repo-creation\/","title":{"rendered":"CentOS DVD local repo creation"},"content":{"rendered":"<p>yum install createrepo<\/p>\n<p>mkdir \/mnt\/dvd1 &amp;&amp; mkdir \/mnt\/dvd2 &amp;&amp; mkdir \/opt\/repo &amp;&amp; mkdir \/opt\/iso<br \/>\nmount -o loop \/opt\/iso\/CentOS-6.6-x86_64-bin-DVD1.iso \/mnt\/dvd1\/ &amp;&amp; mount -o loop \/opt\/iso\/CentOS-6.6-x86_64-bin-DVD2.iso \/mnt\/dvd2\/<\/p>\n<p>rsync -arv \/mnt\/dvd1\/ \/opt\/repo\/<br \/>\nrsync -arv \/mnt\/dvd2\/ \/opt\/repo\/<\/p>\n<p>createrepo -c cache -s sha &#8211;update &#8211;groupfile `ls \/opt\/repo\/repodata\/*comps*.xml` \/opt\/repo<\/p>\n<p>cat &lt;&lt;EOT &gt; \/etc\/yum.repos.d\/local.repo<br \/>\n[local-repo]<br \/>\nname=CentOS 6.6 local repository<br \/>\nbaseurl=file:\/\/\/opt\/repo\/<br \/>\ngpgcheck=1<br \/>\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<br \/>\nenabled=1<br \/>\nEOT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>yum install createrepo mkdir \/mnt\/dvd1 &amp;&amp; mkdir \/mnt\/dvd2 &amp;&amp; mkdir \/opt\/repo &amp;&amp; mkdir \/opt\/iso mount -o loop \/opt\/iso\/CentOS-6.6-x86_64-bin-DVD1.iso \/mnt\/dvd1\/ &amp;&amp; mount -o loop \/opt\/iso\/CentOS-6.6-x86_64-bin-DVD2.iso \/mnt\/dvd2\/ rsync -arv \/mnt\/dvd1\/ \/opt\/repo\/ rsync -arv \/mnt\/dvd2\/ \/opt\/repo\/ createrepo -c cache -s sha &#8211;update &#8211;groupfile `ls \/opt\/repo\/repodata\/*comps*.xml` \/opt\/repo cat &lt;&lt;EOT &gt; \/etc\/yum.repos.d\/local.repo [local-repo] name=CentOS 6.6 local repository baseurl=file:\/\/\/opt\/repo\/ gpgcheck=1 gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[212,237,32,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/751"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":1,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions\/752"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}