{"id":14013,"date":"2017-12-07T19:42:46","date_gmt":"2017-12-08T00:42:46","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/?p=14013"},"modified":"2017-12-07T19:42:46","modified_gmt":"2017-12-08T00:42:46","slug":"centos-redhat-%e0%a6%b2%e0%a6%bf%e0%a6%a8%e0%a6%be%e0%a6%95%e0%a7%8d%e0%a6%b8-%e0%a6%8f-yum-%e0%a6%87%e0%a6%a8%e0%a7%8d%e0%a6%b8%e0%a6%9f%e0%a6%b2%e0%a6%be%e0%a6%b0-%e0%a6%b8%e0%a6%be%e0%a6%b0","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=14013","title":{"rendered":"Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8"},"content":{"rendered":"<p><strong>Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8<\/strong><\/p>\n<p><strong>Mount Installer ISO<\/strong><\/p>\n<p class=\"p1\">mkdir \/mnt\/dvd1<\/p>\n<p class=\"p1\">mount \/dev\/sr0 \/mnt\/dvd1<\/p>\n<p><strong>Check if FTP server is installed<\/strong><\/p>\n<p class=\"p1\">systemctl status vsftpd<\/p>\n<p class=\"p1\">systemctl start vsftpd<\/p>\n<p><strong>Install ftp Server. Using rpm as yum is not available yet [default yum needs the internet, kindof]<\/strong><\/p>\n<p class=\"p1\">cd \/mnt\/dvd1\/Packages\/<\/p>\n<p class=\"p1\">rpm -ivh vsftpd-3.0.2-22.el7.x86_64.rpm<\/p>\n<p class=\"p1\">systemctl start vsftpd<\/p>\n<p class=\"p1\">systemctl enable vsftpd<\/p>\n<p><strong>Copy rpm installer packages to the FTP server under Packages folder<\/strong><\/p>\n<p class=\"p1\">cp -rv \/mnt\/dvd1\/Packages \/var\/ftp\/pub\/<\/p>\n<p><strong>Also, copy the key file for Yum. Key file is to verify the integrity of the packages<\/strong><\/p>\n<p class=\"p1\">cp -rv \/mnt\/dvd1\/RPM-GPG-KEY-CentOS-7 \/var\/ftp\/pub\/<\/p>\n<p class=\"p1\">mv \/var\/ftp\/pub\/RPM-GPG-KEY-CentOS-7 \/var\/ftp\/pub\/key<\/p>\n<p><strong>Install Createrepo using rpm -ivh; create repo will help to create package rep database based on the packages on the FTP server<\/strong><\/p>\n<p class=\"p1\">rpm -ivh createrepo-0.9.9-28.el7.noarch.rpm<\/p>\n<p><strong>Create the repp config file on yum server<\/strong><\/p>\n<p class=\"p1\">cd \/etc\/yum.repos.d\/<\/p>\n<p class=\"p1\">mkdir old<\/p>\n<p class=\"p1\">mv *.repo old\/<\/p>\n<p class=\"p1\">vim <a href=\"http:\/\/ftp.repo\">ftp.repo<\/a><\/p>\n<p class=\"p1\">ftp.repo\u00a0 file content<\/p>\n<p>&nbsp;<\/p>\n<p>[ftp]<\/p>\n<p>name=ftp<\/p>\n<p>baseurl=ftp:\/\/yumserver\/pub\/Packages<\/p>\n<p>enabled=1<\/p>\n<p>gpgcheck=1<\/p>\n<p>one line for pointing to the GPG key file &#8211; if you want to configure for key based verification<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Allow ftp over firewall<\/strong><\/p>\n<p>firewall-cmd &#8211;add-service=ftp &#8211;perm<\/p>\n<p>systemctl reload firewalld<br \/>\nsystemctl restart firewalld<\/p>\n<p><strong>Again Checking if yum works locally on the server<\/strong><\/p>\n<p>yum repolist all<br \/>\nyum repolist<br \/>\nyum repolist enabled<br \/>\nyum -y install tree<br \/>\nyum clean<br \/>\nyum clean cache<br \/>\nyum -y install tree<br \/>\nyum repolist enabled<br \/>\nyum repolist<\/p>\n<p><strong>Create Installer Repository Data<\/strong><\/p>\n<p class=\"p1\">cd \/var\/ftp\/pub\/Packages\/<\/p>\n<p class=\"p1\">createrepo .<\/p>\n<p><strong>Configure name for the server<\/strong><\/p>\n<p class=\"p1\">hostnamectl set-hostname yumserver<\/p>\n<p class=\"p1\">vim \/etc\/hosts<\/p>\n<p>192.168.1.100 yumserver<\/p>\n<p>192.168.1.200 yumclient<\/p>\n<p class=\"p1\">ip addr<\/p>\n<p class=\"p1\">ip addr ens33<\/p>\n<p>use nmtui command or ifconfig to set the IP of the server [when required]<\/p>\n<p>you might want to restart the interface<\/p>\n<p>ifdown ens33; ifup ens33<\/p>\n<p class=\"p1\">ping yumserver<\/p>\n<p class=\"p1\">ping yumclient<\/p>\n<p>before pinging you might want to see if the ping package is installed and if it is blocked or not<\/p>\n<p><strong>Check if yum server works or not<\/strong><\/p>\n<p class=\"p1\">yum install tree<\/p>\n<p class=\"p1\">yum -y install lynx<\/p>\n<hr \/>\n<p><strong>Configure a Client to use your FTP based yum server<\/strong><\/p>\n<p><strong>Copy the ftp.repo<\/strong><\/p>\n<p class=\"p1\">scp \/etc\/yum.repos.d\/ftp.repo root@yumclient:\/etc\/yum.repos.d\/<\/p>\n<p><strong>For Windows:<\/strong><\/p>\n<p>tscp \/etc\/yum.repos.d\/ftp.repo root@yumclient:\/etc\/yum.repos.d\/<\/p>\n<p><strong>Check if the client can access your yum server<\/strong><\/p>\n<p class=\"p1\">yum install tree<\/p>\n<p class=\"p1\">yum -y install lynx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8 Mount Installer ISO mkdir \/mnt\/dvd1 mount \/dev\/sr0 \/mnt\/dvd1 Check if FTP server is installed systemctl status vsftpd systemctl start vsftpd Install ftp Server. Using rpm as yum is not available yet [default yum needs the internet, kindof] cd \/mnt\/dvd1\/Packages\/ rpm -ivh vsftpd-3.0.2-22.el7.x86_64.rpm systemctl start vsftpd systemctl &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=14013\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1231],"tags":[],"class_list":["post-14013","post","type-post","status-publish","format-standard","hentry","category-----linux-and-unix","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":67586,"url":"http:\/\/bangla.sitestree.com\/?p=67586","url_meta":{"origin":14013,"position":0},"title":"Create your own yum repo in Centos\/Redhat #DevOps #RHCSA","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"Yum is a software installation manager for Redhat Linux and Related. yum is a better tool than rpm. Here, we will take the rpm packages as come with Redhat\/Centos and then we will host those packages on our own Repo Server for yum. i.e. yum will use this Repo to\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14029,"url":"http:\/\/bangla.sitestree.com\/?p=14029","url_meta":{"origin":14013,"position":1},"title":"TCP Wrappers in Linux\/CentOS\/Redhat\/Fedora","author":"Sayed","date":"December 24, 2017","format":false,"excerpt":"TCP Wrappers in Linux\/CentOS\/Redhat\/Fedora yum info tcp_wrappers yum install tcp_wrappers-devel.x86_64 506 reboot 507 ifdown ens33 508 ifup ens33 509 yum install tcp_wrappers-devel.x86_64 510 yum -y install tcp_wrappers-devel.x86_64 511 ls \/var\/ftp\/pub\/Packages\/ 512 ls \/etc\/yum.repos.d\/local.repo 513 vim \/etc\/yum.repos.d\/local.repo 514 systemctl status vsftpd 515 systemctl start vsftpd 516 systemctl enable vsftpd 517 yum\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21833,"url":"http:\/\/bangla.sitestree.com\/?p=21833","url_meta":{"origin":14013,"position":2},"title":"TCP Wrappers in Linux\/CentOS\/Redhat\/Fedora #Unix\/Linux #GNU\/Linux #Linux #GNU\/Linux #GNU\/Linux #Linux #GNU\/Linux #DevOps #Everything Linux #RHCSA","author":"Author-Check- Article-or-Video","date":"March 7, 2021","format":false,"excerpt":"yum info tcp_wrappers yum install tcp_wrappers-devel.x86_64 506 reboot 507 ifdown ens33 508 ifup ens33 509 yum install tcp_wrappers-devel.x86_64 510 yum -y install tcp_wrappers-devel.x86_64 511 ls \/var\/ftp\/pub\/Packages\/ 512 ls \/etc\/yum.repos.d\/local.repo 513 vim \/etc\/yum.repos.d\/local.repo 514 systemctl status vsftpd 515 systemctl start vsftpd 516 systemctl enable vsftpd 517 yum -y install tcp_wrappers-devel.x86_64 518\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25053,"url":"http:\/\/bangla.sitestree.com\/?p=25053","url_meta":{"origin":14013,"position":3},"title":"Misc Linux Commands (CentOS\/Redhat) that you might find useful #Root","author":"Author-Check- Article-or-Video","date":"April 15, 2021","format":false,"excerpt":"1 php -v 2 yum repolist 3 yum repolist | remi 4 yum repolist | grep remi 5 yum repolist | grep ius 6 yum makecache 7 yum update 8 reboot 9 adduser ariro 10 passwd ariro 11 usermod -a -G apache ariro 12 adduser magento 13 passwd magento 14\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14842,"url":"http:\/\/bangla.sitestree.com\/?p=14842","url_meta":{"origin":14013,"position":4},"title":"Misc Linux Commands (CentOS\/Redhat) that you might find useful","author":"Sayed","date":"June 28, 2019","format":false,"excerpt":"1 php -v 2 yum repolist 3 yum repolist | remi 4 yum repolist | grep remi 5 yum repolist | grep ius 6 yum makecache 7 yum update 8 reboot 9 adduser ariro 10 passwd ariro 11 usermod -a -G apache ariro 12 adduser magento 13 passwd magento 14\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20401,"url":"http:\/\/bangla.sitestree.com\/?p=20401","url_meta":{"origin":14013,"position":5},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7 @anaconda There are\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14013"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14013\/revisions"}],"predecessor-version":[{"id":14014,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/14013\/revisions\/14014"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14013"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}