{"id":3919,"date":"2012-01-06T10:23:08","date_gmt":"2012-01-06T15:23:08","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3919"},"modified":"2012-02-13T10:56:11","modified_gmt":"2012-02-13T15:56:11","slug":"oracle-linux5-5-setup-yum-repository","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3919","title":{"rendered":"Oracle Linux5.5: Setup yum Repository"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Setup_yum_Repository\">Setup yum Repository<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Oracle_Linux_5\">Oracle Linux 5<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Issues\">Issues<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Repository_el5_xx_base_is_listed_more_than_once_in_the_configuration\">Repository el5_xx_base is listed more than once in the configuration<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Setup_yum_Repository\"><h2>Setup yum Repository<\/h2><\/span>\n<p>* Make sure virtual box network is setup to <em>NAT<\/em> or <em>Bridged Adapter<\/em> so you have access to the internet.<\/p>\n<span id=\"Oracle_Linux_5\"><h3>Oracle Linux 5<\/h3><\/span>\n<p>* Obtain <em>public-yum-el5.repo<\/em> file:<\/p>\n<pre lang=\"bash\">\r\nsu -\r\ncd \/etc\/yum.repos.d\r\nwget http:\/\/public-yum.oracle.com\/public-yum-el5.repo\r\n<\/pre>\n<p>* Find Oracle Linux release number.<br \/>\n&#8211; The following output means it&#8217;s Red Hat Enterprise Linux Server (<strong>el<\/strong>) release <strong>5<\/strong> <strong>u<\/strong>pdate <strong>5<\/strong><br \/>\n&#8211; and we need to enable <em>el5_u5_base<\/em> in public-yum-el5.repo file<\/p>\n<pre lang=\"bash\">\r\ncat \/etc\/redhat-release\r\nRed Hat Enterprise Linux Server release 5.5 (Tikanga)\r\n<\/pre>\n<p>* Edit <em>public-yum-el5.repo<\/em> to enable appropriate repository<\/p>\n<pre lang=\"bash\">\r\n[el5_u5_base]\r\nname=Enterprise Linux $releasever U5 - $basearch - base\r\nbaseurl=http:\/\/public-yum.oracle.com\/repo\/EnterpriseLinux\/EL5\/5\/base\/$basearch\/\r\ngpgkey=http:\/\/public-yum.oracle.com\/RPM-GPG-KEY-oracle-el5\r\ngpgcheck=1\r\nenabled=1\r\n<\/pre>\n<p>* Use yum<\/p>\n<pre lang=\"bash\">\r\nyum list\r\nyum install\r\n<\/pre>\n<span id=\"Issues\"><h2>Issues<\/h2><\/span>\n<span id=\"Repository_el5_xx_base_is_listed_more_than_once_in_the_configuration\"><h3>Repository el5_xx_base is listed more than once in the configuration<\/h3><\/span>\n<p>* Error message:<\/p>\n<pre lang=\"bash\">\r\nyum list\r\nLoaded plugins: security\r\nRepository el5_ga_base is listed more than once in the configuration\r\nRepository el5_u1_base is listed more than once in the configuration\r\nRepository el5_u2_base is listed more than once in the configuration\r\nRepository el5_u3_base is listed more than once in the configuration\r\nRepository el5_u4_base is listed more than once in the configuration\r\nRepository el5_addons is listed more than once in the configuration\r\n<\/pre>\n<p>* Cause: <strong>multiple <\/strong>.repo files are present in <em>\/etc\/yum.repos.d<\/em> directory<br \/>\n* Fix: move all .repo files other than public-yum-el5.repo to a backup directory, for example:<\/p>\n<pre lang=\"bash\">\r\nmkdir bak\r\nmove ULN* bak\r\n<\/pre>\n<p>* Reference: <a href=\"http:\/\/www.geoffblog.com\/2005\/12\/yum-repository-base-is-listed-more.html\">http:\/\/www.geoffblog.com\/2005\/12\/yum-repository-base-is-listed-more.html<\/a><\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/thuannvn.blogspot.com\/2009\/06\/yum-repository-setup-by-oracle.html\">Yum Repository Setup by Oracle Unbreakable Linux <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setup yum Repository * Make sure virtual box network is setup to NAT or Bridged Adapter so you have access to the internet. Oracle Linux 5 * Obtain public-yum-el5.repo file: su &#8211; cd \/etc\/yum.repos.d wget http:\/\/public-yum.oracle.com\/public-yum-el5.repo * Find Oracle Linux &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3919\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[61,123],"tags":[],"class_list":["post-3919","post","type-post","status-publish","format-standard","hentry","category-linux","category-virtualbox"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-11d","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3919"}],"version-history":[{"count":9,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3919\/revisions"}],"predecessor-version":[{"id":4262,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3919\/revisions\/4262"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}