{"id":7066,"date":"2017-10-11T18:29:00","date_gmt":"2017-10-11T10:29:00","guid":{"rendered":"http:\/\/rmohan.com\/?p=7066"},"modified":"2017-10-11T18:29:07","modified_gmt":"2017-10-11T10:29:07","slug":"yum-server","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7066","title":{"rendered":"YUM SERVER"},"content":{"rendered":"<p><strong>YUM SERVER<\/strong> <\/p>\n<p>#################### Y U M   S E R V E R ####################<\/p>\n<p>[root@server~]#vi \/etc\/hosts<\/p>\n<p>192.168.10.253 server.example.com server<\/p>\n<p>[root@server~]#rpm -qa | grep yum #require packages<\/p>\n<p>yum-3.0.1-5.el5<br \/>\nyum-metadata-parser-1.0-8.fc6<br \/>\nyum-rhn-plugin-0.4.3-1.el5<br \/>\nyum-updatesd-3.0.1-5.el5<\/p>\n<p>[root@server~]#rpm -qa | grep createrepo<\/p>\n<p>createrepo-0.4.4-2.fc6 # To create repository<\/p>\n<p>[root@server~]#rpm -qa | grep vsftpd #FTP service for yum server<\/p>\n<p>vsftpd-2.0.5-10.el5<\/p>\n<p>#service vsftpd restart<br \/>\n#chkconfig vsftpd on<\/p>\n<p>> Now mount RHEL- CD\/DVD into \/mnt folder<\/p>\n<p>[root@server~]#mount \/dev\/cdrom \/mnt OR U can Copy all rpm in pub directory<\/p>\n<p>> Copy Server directory from \/mnt and paste into \/var\/ftp\/pub directory.<\/p>\n<p>[root@server~]#cp -ar \/mnt\/Server  \/var\/ftp\/pub<\/p>\n<p>> Edit \/etc\/yum.repos.d\/rhel-debuginfo.repo  file and modify as given bellow:<\/p>\n<p>[root@server~]#vi \/etc\/yum.repos.d\/rhel-debuginfo.repo<\/p>\n<p>[rhel-debuginfo]<br \/>\nname=Red Hat Enterprise Linux $releasever &#8211; $basearch &#8211; Debug<br \/>\nbaseurl=ftp:\/\/server.example.com\/pub\/Server<br \/>\nenabled=1<br \/>\ngpgcheck=0<\/p>\n<p>> Now create repositoy fo packages.<\/p>\n<p>[root@server~]#createrepo -v \/var\/ftp\/pub\/Server<\/p>\n<p>Note: It will take long time depends upon rpm packages and performance of machine.<\/p>\n<p>> After repository created, It may be prompt for error that &#8220;remove .olddata directory manually&#8221;<\/p>\n<p>[root@server~]#rm -rf \/var\/ftp\/pub\/Server\/.olddata<\/p>\n<p>> Everything done well then try to use yum utility by using yum command.<\/p>\n<p>(Note: If allready yum is configured and you are configuring new yum server<br \/>\nthen use #yum clean all  command)<\/p>\n<p>[root@server~]#yum list #list rmp repository<br \/>\n[root@server~]#yum info vsftpd #Provide information about package<br \/>\n[root@server~]#yum install bind #To install packages<br \/>\n[root@server~]#yum install http*<br \/>\n[root@server~]#yum remove bind #To remove packages<\/p>\n<p>#################### Y U M   S E R V E R ####################<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>#################### Y U M   C L I E N T ####################<\/p>\n<p>> Make sure that vsftpd package is installed.<br \/>\n:> Suppose client is client.example.com<\/p>\n<p>[root@client~]#rpm -qa | grep vsftpd<\/p>\n<p>#service vsftpd restart<br \/>\n#chkconfig vsftpd on<\/p>\n<p>> Edit \/etc\/yum.repos.d\/rhel-debuginfo.repo  file and modify as given bellow:<\/p>\n<p>[root@client~]#vi \/etc\/yum.repos.d\/rhel-debuginfo.repo<\/p>\n<p>[rhel-debuginfo]<br \/>\nname=Red Hat Enterprise Linux $releasever &#8211; $basearch &#8211; Debug<br \/>\nbaseurl=ftp:\/\/server.example.com\/pub\/Server<br \/>\nenabled=1<br \/>\ngpgcheck=0<\/p>\n<p>[root@client~]#yum list<\/p>\n<p>#################### Y U M   C L I E N T ####################<\/p>\n","protected":false},"excerpt":{"rendered":"<p>YUM SERVER <\/p>\n<p>#################### Y U M S E R V E R ####################<\/p>\n<p>[root@server~]#vi \/etc\/hosts<\/p>\n<p>192.168.10.253 server.example.com server<\/p>\n<p>[root@server~]#rpm -qa | grep yum #require packages<\/p>\n<p>yum-3.0.1-5.el5 yum-metadata-parser-1.0-8.fc6 yum-rhn-plugin-0.4.3-1.el5 yum-updatesd-3.0.1-5.el5<\/p>\n<p>[root@server~]#rpm -qa | grep createrepo<\/p>\n<p>createrepo-0.4.4-2.fc6 # To create repository<\/p>\n<p>[root@server~]#rpm -qa | grep vsftpd #FTP service for yum server<\/p>\n<p>vsftpd-2.0.5-10.el5<\/p>\n<p>#service vsftpd restart #chkconfig [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7066"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7066"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7066\/revisions"}],"predecessor-version":[{"id":7068,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7066\/revisions\/7068"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}