{"id":1085,"date":"2020-03-19T17:40:36","date_gmt":"2020-03-19T22:40:36","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1085"},"modified":"2020-03-19T17:40:36","modified_gmt":"2020-03-19T22:40:36","slug":"how-to-set-up-and-use-yum-repositories-on-centos-7","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/","title":{"rendered":"How to Set Up and Use Yum Repositories on CentOS 7"},"content":{"rendered":"<div id=\"linux-3449916363\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1088\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/install-configure-yum-repositories-package-manager-centos7.jpg\" alt=\"\" width=\"140\" height=\"50\" \/>The official CentOS 7 repository has a huge list of packages and it covers almost all bases in terms of software for servers, but sometimes we need some additional packages which are not available in the official repositories. In that case, we can simply add new repositories to further expand the catalogue of packages available to us. Let&#8217;s begin with the tutorial.<\/p>\n<p><!--more--><\/p>\n<h2><strong>Step 1. Login via SSH<\/strong><\/h2>\n<p>Log in to your CentOS 7 VPS via SSH as the root user, or as an account with sudo privileges:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_number<\/span><\/pre>\n<p>Make sure to replace &#8220;<span style=\"color: #ff0000;\">IP_Address<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">Port_number<\/span>&#8221; with your server&#8217;s IP address and SSH port.<\/p>\n<h2>Step 2. Update the OS Packages and Install the yum-utils Package:<\/h2>\n<p>Once you are logged in to the server, run the following commands to make sure that all installed packages are up to date:<\/p>\n<pre>yum clean all\r\nyum update<\/pre>\n<p>Install the <code>yum-utils<\/code> package using the following command:<\/p>\n<pre>yum install yum-utils<\/pre>\n<p>We can enable the EPEL (Extra Packages for Enterprise Linux) repository on CentOS 7 \/ RHEL 7, maintained by a special Fedora Special Interest Group that creates, maintains, and manages high quality additional packages for enterprise Linux versions. This includes Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux (SL), and Oracle Enterprise Linux (OEL).<\/p>\n<h2>Step 3. Install the EPEL repository<\/h2>\n<p>To install the EPEL rpm, do so with the following command:<\/p>\n<pre>rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/e\/epel-release-7-11.noarch.rpm<\/pre>\n<p>The output will appear as shown below:<\/p>\n<pre>Retrieving https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/e\/epel-release-7-11.noarch.rpm\r\nPreparing...                          ################################# [100%]\r\nUpdating \/ installing...\r\n   1:epel-release-7-11                ################################# [100%]<\/pre>\n<p>Check the newly installed repository. You should be able to find the EPEL repository in the list.<\/p>\n<pre>yum repolist<\/pre>\n<p>You should receive the following output, or something similar to it:<\/p>\n<pre>base                                                                                                            | 3.6 kB  00:00:00\r\nepel\/x86_64\/metalink                                                                                            |  11 kB  00:00:00\r\nepel                                                                                                            | 3.2 kB  00:00:00\r\nextras                                                                                                          | 3.4 kB  00:00:00\r\nupdates                                                                                                         | 3.4 kB  00:00:00\r\n(1\/7): base\/7\/x86_64\/group_gz                                                                                   | 166 kB  00:00:00\r\n(2\/7): base\/7\/x86_64\/primary_db                                                                                 | 5.9 MB  00:00:00\r\n(3\/7): epel\/x86_64\/group_gz                                                                                     |  88 kB  00:00:00\r\n(4\/7): epel\/x86_64\/updateinfo                                                                                   | 934 kB  00:00:00\r\n(5\/7): updates\/7\/x86_64\/primary_db                                                                              | 6.0 MB  00:00:00\r\n(6\/7): extras\/7\/x86_64\/primary_db                                                                               | 204 kB  00:00:00\r\n(7\/7): epel\/x86_64\/primary                                                                                      | 3.6 MB  00:00:00\r\nepel                                                                                                                       12739\/12739\r\nrepo id                                         repo name                                                                      status\r\nbase\/7\/x86_64                                   CentOS-7 - Base                                                                9,901+10\r\nepel\/x86_64                                     Extra Packages for Enterprise Linux 7 - x86_64                                   12,739\r\nextras\/7\/x86_64                                 CentOS-7 - Extras                                                                   432\r\nupdates\/7\/x86_64                                CentOS-7 - Updates                                                             1,543+71\r\nrepolist: 24,615<\/pre>\n<p>In order to see all of the packages available in the EPEL repository, run the following command:<\/p>\n<pre>yum --enablerepo=epel list | less<\/pre>\n<p>The output of this command will show you the list of packages.<\/p>\n<p><strong>Note:<\/strong> Other CentOS repositories that can be useful are located in <code>\/etc\/yum.repos.d<\/code> directory. When enabling some repository manually by editing the .repo file, make sure that the main version for CentOS is used in the repo file, in this case, it is CentOS 7.<\/p>\n<p>For example, edit the CentOS-Base.repo file and add\/modify these lines:<\/p>\n<pre>[base]\r\nname=CentOS $releasever \u2013 Base\r\nbaseurl=http:\/\/mirror.centos.org\/centos\/7\/os\/$basearch\/\r\ngpgcheck=0\r\nenabled=1\r\n\r\n[updates]\r\nname=CentOS $releasever \u2013 Updates\r\nbaseurl=http:\/\/mirror.centos.org\/centos\/7\/updates\/$basearch\/\r\ngpgcheck=0\r\nenabled=1\r\n\r\n[extras]\r\nname=CentOS $releasever \u2013 Extras\r\nbaseurl=http:\/\/mirror.centos.org\/centos\/7\/extras\/$basearch\/\r\ngpgcheck=0\r\nenabled=1<\/pre>\n<h2>Listing all repositories<\/h2>\n<p>To list all repositories, including all enabled and disabled repositories, run:<\/p>\n<pre>yum repolist all<\/pre>\n<h2>Enabling a Yum Repository<\/h2>\n<p>To enable a Yum repository, run the following command as root:<\/p>\n<pre>yum-config-manager --enable repository <span style=\"color: #ff0000;\">&lt;repository name&gt;<\/span><\/pre>\n<h2>Disabling a Yum Repository<\/h2>\n<p>To disable a Yum repository, run the following command as root:<\/p>\n<pre>yum-config-manager --disable repository <span style=\"color: #ff0000;\">&lt;repository name&gt;<\/span><\/pre>\n<p>Do not forget to replace\u00a0<span style=\"color: #ff0000;\">&lt;repository name&gt;<\/span> with the actual repo name.<\/p>\n<p>If for some reason we cannot find the software package we need in the official and EPEL repositories, we can extend the capabilities of the server with even more software by adding additional repositories, like the Remi RPM repository, which is not an official repository of CentOS distribution but is well maintained and always up to date.<\/p>\n<p>Remi Collet maintains a large collection of RPM packages, including the latest versions of PHP, etc. Please note that this repo does not always play nicely with other third party CentOS repos, so check the list of repositories using\u00a0<code>yum repolist<\/code> and disable additional repositories if there are any package conflicts.<\/p>\n<p>We can install the Remi repository using this next command:<\/p>\n<pre>rpm -Uvh http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/pre>\n<p>If for example we want to enable PHP 7.2 , we can edit the <code>\/etc\/yum.repos.d\/remi-php72.repo<\/code> file and change enabled=0 to enabled=1 :<\/p>\n<pre># This repository only provides PHP 7.2 and its extensions\r\n# NOTICE: common dependencies are in \"remi-safe\"\r\n\r\n[remi-php72]\r\nname=Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - $basearch\r\n#baseurl=http:\/\/rpms.remirepo.net\/enterprise\/7\/php72\/$basearch\/\r\n#mirrorlist=https:\/\/rpms.remirepo.net\/enterprise\/7\/php72\/httpsmirror\r\nmirrorlist=http:\/\/cdn.remirepo.net\/enterprise\/7\/php72\/mirror\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-remi<\/pre>\n<p>Another good unofficial CentOS repository is the Webtatic Repo. This repository provides updated packages with later versions of PHP, MySQL, and other packages. With this information, you can now install any repository of your choosing and expand the functionality of your server in any way that you need to.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1089\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/get-best-managed-support-package-manager-setup-expert-admins-server-help.jpg\" alt=\"\" width=\"140\" height=\"50\" \/>Of course, you don\u2019t have to setup and configure additional repositories on CentOS 7, if you use our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Fully Managed VPS Support<\/a>\u00a0solutions, in which case you can simply ask our expert Linux admins to configure additional repositories on CentOS 7 for you, along with anything else that you might need. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong>.<\/span> If you liked this post on how to set up and use Yum repositories on a CentOS VPS, please share it with your friends on the social networks using the sharing shortcut, or simply leave a reply below. Thanks.<\/p><div id=\"linux-2270431910\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it covers almost all bases in terms of software for servers, but sometimes we need some additional packages which are not available in the official repositories. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1087,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[17,145,129],"class_list":["post-1085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-centos","tag-repositories","tag-yum"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-19T22:40:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Set Up and Use Yum Repositories on CentOS 7\",\"datePublished\":\"2020-03-19T22:40:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/\"},\"wordCount\":695,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg\",\"keywords\":[\"centos\",\"Repositories\",\"yum\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/\",\"name\":\"How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg\",\"datePublished\":\"2020-03-19T22:40:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-set-up-and-use-yum-repositories-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up and Use Yum Repositories on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport","description":"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport","og_description":"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2020-03-19T22:40:36+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Set Up and Use Yum Repositories on CentOS 7","datePublished":"2020-03-19T22:40:36+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/"},"wordCount":695,"commentCount":3,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg","keywords":["centos","Repositories","yum"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/","name":"How to Set Up and Use Yum Repositories on CentOS 7 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg","datePublished":"2020-03-19T22:40:36+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"This tutorial explains how to set up and use Yum repositories on a CentOS 7 VPS. The official CentOS 7 repository has a huge list of packages and it","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/03\/how-to-set-up-and-use-yum-repositories-on-centos7.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-set-up-and-use-yum-repositories-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Set Up and Use Yum Repositories on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1085\/revisions"}],"predecessor-version":[{"id":1091,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1085\/revisions\/1091"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1087"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}