{"id":27409,"date":"2018-07-05T03:49:45","date_gmt":"2018-07-05T08:49:45","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27409"},"modified":"2022-10-03T08:45:29","modified_gmt":"2022-10-03T13:45:29","slug":"how-to-enable-proxy-settings-for-yum-command-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/","title":{"rendered":"Enable Proxy Settings for Yum Command on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"371\" class=\"wp-image-33847\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\" alt=\"enable proxy settings for yum command on centos 7\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright size-large\"><img decoding=\"async\" width=\"180\" height=\"180\" class=\"wp-image-38258\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/enabling-proxy-settings-for-yum-command-on-centos.png\" alt=\"enabling proxy settings for yum command on centos\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/enabling-proxy-settings-for-yum-command-on-centos.png 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/enabling-proxy-settings-for-yum-command-on-centos-150x150.png 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this article, we will show you how to <strong>enable proxy settings for yum command on CentOS 7<\/strong>. Yum is a package management tool <span class=\"st\">that works with <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-rpm-packages-on-ubuntu\/\">RPM packages<\/a><\/span>. It is available on <span class=\"st\">RedHat Enterprise Linux, CentOS, and older versions of Fedora,\u00a0<\/span>and it is the most convenient way to handle OS packages and their dependencies on these operating systems.<\/p>\r\n\r\n\r\n\r\n<p>When a server can only be accessed through proxy servers, you need to configure yum to use a proxy server so you can install a RPM package, or update the currently <a href=\"https:\/\/www.rosehosting.com\/blog\/list-all-installed-packages-with-yum-on-centos-7\/\">installed yum packages<\/a>.<br \/>To configure a proxy server so the system user can access and use yum commands is a fairly easy and straight-to-the-point task, and it shouldn&#8217;t take more than 5 minutes to configure it. Let&#8217;s get started.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e736a4ccf56\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e736a4ccf56\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#1-Configure-proxy-settings\" >1. Configure proxy settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#2-Enable-proxy-access-for-a-specific-system-user-only\" >2. Enable proxy access for a specific system user only<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#3-Test-the-settings\" >3. Test the settings<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-1-configure-proxy-settings\"><span class=\"ez-toc-section\" id=\"1-Configure-proxy-settings\"><\/span>1. Configure proxy settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Edit the &#8216;\/etc\/yum.conf&#8217; yum configuration file and specify the proxy settings in the main section e.g.:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">[main]\r\n\r\nproxy=http:\/\/proxysever.yourdomain.com:3128\r\nproxy_username=rhproxy\r\nproxy_password=D5znQs4P8Rmtw\r\n\r\ntolerant=1\r\nerrorlevel=1\r\ncachedir=\/var\/cache\/yum\/$basearch\/$releasever\r\nkeepcache=0\r\ndebuglevel=2\r\nlogfile=\/var\/log\/yum.log\r\nexactarch=1\r\nobsoletes=1\r\ngpgcheck=1\r\nplugins=1\r\ninstallonly_limit=5\r\nbugtracker_url=http:\/\/bugs.centos.org\/set_project.php?project_id=23&amp;ref=http:\/\/bugs.centos.org\/bug_report_page.php?category=yum\r\ndistroverpkg=centos-release\r\n\r\n#  This is the default, if you make this bigger yum won't see if the metadata\r\n# is newer on the remote and so you'll \"gain\" the bandwidth of not having to\r\n# download the new metadata and \"pay\" for it by yum not having correct\r\n# information.\r\n#  It is esp. important, to have correct metadata, for distributions like\r\n# Fedora which don't keep old packages around. If you don't like this checking\r\n# interupting your command line usage, it's much better to have something\r\n# manually check the metadata once an hour (yum-updatesd will do this).\r\n# metadata_expire=90m\r\n\r\n# PUT YOUR REPOS HERE OR IN separate files named file.repo\r\n# in \/etc\/yum.repos.d\r\n<\/pre>\r\n\r\n\r\n\r\n<p>Where:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>proxy<\/strong> is the Proxy server URL (domain name or IP address) that yum should use including the TCP port number. In this example, proxysever.yourdomain.com is the URL of the proxy server. Do not forget to change 3128 with the actual port number of the proxy server.<\/li>\r\n<li><strong>proxy_username<\/strong> is the proxy server username to use for the proxy URL. If this is unset it inherits it from the global setting.<\/li>\r\n<li><strong>proxy_password<\/strong> is the proxy server password to use for the proxy URL. If this is unset it inherits it from the global setting.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>Make sure to use a strong password for the proxy password. Use a password that is not the same as any other system user password, especially the root user password.<\/p>\r\n\r\n\r\n\r\n<p>Please note that all users should have read access to \/etc\/yum.conf file so they can connect to the proxy server with those details when using yum commands.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-2-enable-proxy-access-for-a-specific-system-user-only\"><span class=\"ez-toc-section\" id=\"2-Enable-proxy-access-for-a-specific-system-user-only\"><\/span>2. Enable proxy access for a specific system user only<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>If for some reason you want to enable proxy access only for a specific system user, you need to add these lines to the user&#8217;s shell profile:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">http_proxy=\"http:\/\/proxysever.yourdomain.com:3128\"\r\nexport http_proxy<\/pre>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"180\" height=\"180\" class=\"wp-image-38259\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/setting-up-proxy-settings-for-yum-command-on-centos.png\" alt=\"setting up proxy settings for yum command on centos\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/setting-up-proxy-settings-for-yum-command-on-centos.png 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/setting-up-proxy-settings-for-yum-command-on-centos-150x150.png 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>If the user is using the default bash shell, the user profile should be set in ~\/.bash_profile file. The settings we used in this example should enable yum to use the proxy server proxysever.yourdomain.com, connecting to port 3128.<\/p>\r\n\r\n\r\n\r\n<p>If the proxy server requires a username and password, edit the user&#8217;s shell profile and add the username and password to the URL of the proxy server:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">http_proxy=\"http:\/\/rhproxy:D5znQs4P8Rmtw@proxysever.yourdomain.com:3128\"\r\nexport http_proxy<\/pre>\r\n\r\n\r\n\r\n<p>Do not forget to replace rhproxy, D5znQs4P8Rmtw, proxysever.yourdomain.com and 3128 with the actual proxy username, proxy user password, proxy URL and the port number of the proxy server respectively.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-3-test-the-settings\"><span class=\"ez-toc-section\" id=\"3-Test-the-settings\"><\/span>3. Test the settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>In order to check if proxy settings are configured properly, run some yum command, for example, try to use:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">yum clean all &amp;&amp; yum search dovecot<\/pre>\r\n\r\n\r\n\r\n<p>The output of this command will show you a list with details of all available packages named dovecot:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># yum search dovecot\r\n=========================================================================== N\/S matched: dovecot ============================================================================\r\ndovecot-devel.x86_64 : Development files for dovecot\r\ndovecot-mysql.x86_64 : MySQL back end for dovecot\r\ndovecot-pgsql.x86_64 : Postgres SQL back end for dovecot\r\ndovecot-pigeonhole.x86_64 : Sieve and managesieve plug-in for dovecot\r\ndovecot.i686 : Secure imap and pop3 server\r\ndovecot.x86_64 : Secure imap and pop3 server\r\n\r\n  Name and summary matches only, use \"search all\" for everything.<\/pre>\r\n\r\n\r\n\r\n<p>Congratulations. You have successfully configured proxy server for yum command on CentOS 7.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"180\" height=\"73\" class=\"wp-image-38260\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-enable-proxy-settings-for-yum-command-on-centos-7.jpg\" alt=\"how to enable proxy settings for yum command on centos 7\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-enable-proxy-settings-for-yum-command-on-centos-7.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/07\/how-to-enable-proxy-settings-for-yum-command-on-centos-7-150x61.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to enable proxy settings for yum command on CentOS 7, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">Managed CentOS VPS Hosting Solutions<\/a>, in which case you can simply ask our expert Linux admins to configure the use of a proxy server so you can use yum command for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on how to enable proxy settings for yum command on CentOS 7,\u00a0 please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to enable proxy settings for yum command on CentOS 7. Yum is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Enable Proxy Settings for Yum Command on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#more-27409\" aria-label=\"Read more about Enable Proxy Settings for Yum Command on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":33847,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1701],"tags":[34,541,1619,1549,163,1251],"class_list":["post-27409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-networking-and-domains","tag-centos","tag-centos-7","tag-command","tag-enable-redis-in-joomla","tag-proxy","tag-yum","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Enable Proxy Settings For Yum Command on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to set proxy for yum command on CentOS 7. Install RPM, configure yum, use a proxy server on a Linux OS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enable Proxy Settings for Yum Command on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"Enable Proxy Settings for Yum Command on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-05T08:49:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-03T13:45:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Enable Proxy Settings for Yum Command on CentOS 7\",\"datePublished\":\"2018-07-05T08:49:45+00:00\",\"dateModified\":\"2022-10-03T13:45:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/\"},\"wordCount\":602,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\",\"keywords\":[\"centos\",\"centos 7\",\"command\",\"enable redis in joomla\",\"proxy\",\"yum\"],\"articleSection\":[\"CentOS\",\"Networking and Domains\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/\",\"name\":\"Enable Proxy Settings For Yum Command on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\",\"datePublished\":\"2018-07-05T08:49:45+00:00\",\"dateModified\":\"2022-10-03T13:45:29+00:00\",\"description\":\"Learn how to set proxy for yum command on CentOS 7. Install RPM, configure yum, use a proxy server on a Linux OS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg\",\"width\":742,\"height\":371,\"caption\":\"enable proxy settings for yum command on centos 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable Proxy Settings for Yum Command on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Enable Proxy Settings For Yum Command on CentOS 7 | RoseHosting","description":"Learn how to set proxy for yum command on CentOS 7. Install RPM, configure yum, use a proxy server on a Linux OS.","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:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Enable Proxy Settings for Yum Command on CentOS 7","og_description":"Enable Proxy Settings for Yum Command on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-07-05T08:49:45+00:00","article_modified_time":"2022-10-03T13:45:29+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Enable Proxy Settings for Yum Command on CentOS 7","datePublished":"2018-07-05T08:49:45+00:00","dateModified":"2022-10-03T13:45:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/"},"wordCount":602,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg","keywords":["centos","centos 7","command","enable redis in joomla","proxy","yum"],"articleSection":["CentOS","Networking and Domains"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/","name":"Enable Proxy Settings For Yum Command on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg","datePublished":"2018-07-05T08:49:45+00:00","dateModified":"2022-10-03T13:45:29+00:00","description":"Learn how to set proxy for yum command on CentOS 7. Install RPM, configure yum, use a proxy server on a Linux OS.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/enable-proxy-settings-for-yum-command-on-centos-7-1.jpg","width":742,"height":371,"caption":"enable proxy settings for yum command on centos 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-enable-proxy-settings-for-yum-command-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Enable Proxy Settings for Yum Command on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27409"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27409\/revisions"}],"predecessor-version":[{"id":43237,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27409\/revisions\/43237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/33847"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}