{"id":2150,"date":"2020-01-25T13:36:22","date_gmt":"2020-01-25T13:36:22","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=2150"},"modified":"2020-02-25T23:55:02","modified_gmt":"2020-02-25T23:55:02","slug":"yum","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=2150","title":{"rendered":"YUM"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">YUM installer tool<\/h2>\n\n\n\n<p>More sooner than later you&#8217;ll find yourself using &#8220;<strong>yum<\/strong>&#8221; when installing software on your Linux CentOS 7, and that&#8217;s because yum has become the most useful tool to manage packages its dependencies and repositories.<\/p>\n\n\n\n<p>What YUM does is to connect to a software repository to download and install the software for you, taking care at the same time of any possible dependency needed.<\/p>\n\n\n\n<p>RPM is still an option when it comes to install software but it requires a lot more work on your part to download the software first, download all the dependencies and run the rpm command to install the software.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">For what YUM stands for?<\/h2>\n\n\n\n<p><strong>YUM<\/strong>&nbsp;stands for <strong>Yellowdog Updater, Modified<\/strong>, it is a command-line package management utility for RPM-based Linux systems.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-text-align-center is-layout-flow wp-block-quote-is-layout-flow\"><p>RPM<\/p><cite> <em> Red-hat Package Manager<\/em><\/cite><\/blockquote>\n\n\n\n<p>Yum is useful for RPMs which have dependencies, what yum will do is to search for all dependencies of any RPM in all available repositories.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Commonly used YUM repositories<\/h2>\n\n\n\n<p>We need repositories to keep our systems up to date with the latest packages, because these repositories have all the RPMs required for our servers, the following list shows the most commonly used repositories.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>EPEL<\/li><li>REMI<\/li><li>RPMFusin<\/li><li>ELRepo<\/li><li>Webtatic <\/li><\/ul>\n\n\n\n<p>These repositories are created, maintained, and managed by Linux\u2019s professional programmers, just as an example, the following GitHub link belongs to the creator or REMI repository:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/remicollet\" target=\"_blank\" rel=\"noreferrer noopener\">remi (GitHub)<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to check repositories<\/h2>\n\n\n\n<p>You can check all the available repositories for your system, both <strong>Enabled <\/strong>and <strong>Disabled <\/strong>using the following CLI command.<\/p>\n\n\n<p class=\"fonts-plugin-block \" style=\"font-family: calibri;font-weight: 700;font-size: 20px;color: #9b51e0\">yum repolist all<\/p>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/yum-check-repositories.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/yum-check-repositories.jpg\" alt=\"\" class=\"wp-image-2153\" width=\"718\" height=\"533\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/yum-check-repositories.jpg 957w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/yum-check-repositories-300x223.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/yum-check-repositories-768x571.jpg 768w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to install YUM utils<\/h2>\n\n\n<p class=\"fonts-plugin-block \" style=\"font-family: calibri;font-weight: 700;font-size: 20px;color: #9b51e0\"><strong>yum install yum-utils<\/strong><\/p>\n\n\n<p>One of the main and most useful programs provided by yum-utils is&nbsp;<strong>yum-config-manager<\/strong>, which you can use to&nbsp;<strong>enable Remi repository<\/strong>&nbsp;as the default repository for installing different PHP versions.<\/p>\n\n\n\n<p>Another usefull tool included between the &#8220;yum-utils&#8221; is &#8220;<strong>repoquery<\/strong>&#8221; that can be used to &#8220;query&#8221; a given &#8220;YUM Package&#8221; to get a list of all the files that have been installed by that particular package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">YUM Utils installation log<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"rest\" class=\"language-rest\">[root@centos7 ~]# yum install yum-utils\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: centos.itsbrasil.net\n * extras: mirror.ci.ifes.edu.br\n * updates: linorg.usp.br\nResolving Dependencies\n--> Running transaction check\n---> Package yum-utils.noarch 0:1.1.31-52.el7 will be installed\n--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-52.el7.noarch\n--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-52.el7.noarch\n--> Running transaction check\n---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed\n---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed\n--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch\n--> Running transaction check\n---> Package python-chardet.noarch 0:2.2.1-3.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================================\n Package                   Arch              Version                      Repository       Size\n================================================================================================\nInstalling:\n yum-utils                 noarch            1.1.31-52.el7                base            121 k\nInstalling for dependencies:\n libxml2-python            x86_64            2.9.1-6.el7_2.3              base            247 k\n python-chardet            noarch            2.2.1-3.el7                  base            227 k\n python-kitchen            noarch            1.1.1-5.el7                  base            267 k\n\nTransaction Summary\n================================================================================================\nInstall  1 Package (+3 Dependent packages)\n\nTotal download size: 862 k\nInstalled size: 4.3 M\nIs this ok [y\/d\/N]: y\nDownloading packages:\n(1\/4): python-chardet-2.2.1-3.el7.noarch.rpm                             | 227 kB  00:00:15     \n(2\/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                         | 247 kB  00:00:15     \n(3\/4): yum-utils-1.1.31-52.el7.noarch.rpm                                | 121 kB  00:00:00     \n(4\/4): python-kitchen-1.1.1-5.el7.noarch.rpm                             | 267 kB  00:00:00     \n------------------------------------------------------------------------------------------------\nTotal                                                            53 kB\/s | 862 kB  00:00:16     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : python-chardet-2.2.1-3.el7.noarch                                            1\/4 \n  Installing : python-kitchen-1.1.1-5.el7.noarch                                            2\/4 \n  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                        3\/4 \n  Installing : yum-utils-1.1.31-52.el7.noarch                                               4\/4 \n  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                            1\/4 \n  Verifying  : yum-utils-1.1.31-52.el7.noarch                                               2\/4 \n  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                        3\/4 \n  Verifying  : python-chardet-2.2.1-3.el7.noarch                                            4\/4 \n\nInstalled:\n  yum-utils.noarch 0:1.1.31-52.el7                                                              \n\nDependency Installed:\n  libxml2-python.x86_64 0:2.9.1-6.el7_2.3          python-chardet.noarch 0:2.2.1-3.el7         \n  python-kitchen.noarch 0:1.1.1-5.el7             \n\nComplete!\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How to use Yum-config-manager<\/h2>\n\n\n\n<p>We already saw with the command \u201c<a href=\"\/installing-php\/#How_to_find_REMI_files\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">find<\/a>\u201d that our system has several PHP versions inside the REMI folder, we can then choose one of them and enable it using the yum-config-manager, as shown below:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>yum-config-manager \u2013enable remi-php73<\/strong><\/li><\/ul>\n\n\n\n<p>Basically, whatever is inside REMI can be enabled using the above command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>YUM installer tool More sooner than later you&#8217;ll find yourself using &#8220;yum&#8221; when installing software on your Linux CentOS 7, and that&#8217;s because yum has become the most useful tool to manage packages its dependencies and repositories. What YUM does is to connect to a software repository to download and install the software for you, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=2150\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;YUM&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2150","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2150"}],"version-history":[{"count":28,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2150\/revisions"}],"predecessor-version":[{"id":3759,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/2150\/revisions\/3759"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}