{"id":2392,"date":"2012-03-18T15:27:26","date_gmt":"2012-03-18T07:27:26","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2392"},"modified":"2023-04-28T09:49:39","modified_gmt":"2023-04-28T09:49:39","slug":"how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-fedora-please-verify-its-path-and-try-again-error-when-using-local-dvd-romcd-rom-yum-repository-on-fedora-16","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-fedora-please-verify-its-path-and-try-again-error-when-using-local-dvd-romcd-rom-yum-repository-on-fedora-16\/","title":{"rendered":"How to Fix &#8220;Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again&#8221; Error When using Local DVD-ROM\/CD-ROM Yum Repository on Fedora 16"},"content":{"rendered":"<p><strong>Question :<\/strong><\/p>\n<p>I am using Local DVD-ROM\/CD-ROM yum Repository on Fedora 16. But when i perform any yum command to install or update or remove the package\/module, i get the following error :<\/p>\n<pre>\nError: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. \nPlease verify its path and try again\n<\/pre>\n<p><strong>Answer :<\/strong><br \/>\nTo fix the following error, follow this steps :<\/p>\n<p>1. Create repo.disabled inside \/etc\/yum.repos.d :<\/p>\n<pre>\n[root@fedora16 ~]# mkdir \/etc\/yum.repos.d\/repo.disabled\n<\/pre>\n<p>By default of minimal installation of Fedora 16 server, there are 3 file in \/etc\/yum.repos.d as below :<\/p>\n<pre>\n[root@fedora16 ~]# ls \/etc\/yum.repos.d\/\nfedora.repo  fedora-updates.repo  fedora-updates-testing.repo  repo.disabled\n<\/pre>\n<p><strong>Note<\/strong> : repos.disabled is the folder that you created in step (1).<\/p>\n<p>2. Then moved all these 3 repo files into &#8220;repo.disabled&#8221; folder :<\/p>\n<pre>\n[root@fedora16 ~]# mv \/etc\/yum.repos.d\/fedora.repo \/etc\/yum.repos.d\/repo.disabled\n[root@fedora16 ~]# mv \/etc\/yum.repos.d\/fedora-updates.repo \/etc\/yum.repos.d\/repo.disabled\n[root@fedora16 ~]# mv \/etc\/yum.repos.d\/fedora-updates-testing.repo \/etc\/yum.repos.d\/repo.disabled\n<\/pre>\n<p>3. Create files fedora16.repo under \/etc\/yum.repos.d and enter the following lines :<\/p>\n<pre>\n[root@fedora16 ~]# vi \/etc\/yum.repos.d\/fedora16.repo\n<\/pre>\n<p>Enter these lines in fedora16.repo :<\/p>\n<pre>\n[Fedora16-Repository]\nname=DVD-Fedora16 Repository\nbaseurl=file:\/\/\/mnt\nenabled=1\ngpgcheck=0\n<\/pre>\n<p>Check What file and folder inside \/etc\/yum.repos.d :<\/p>\n<pre>\n[root@fedora16 ~]# ls -l \/etc\/yum.repos.d\/\ntotal 8\n-rw-r--r--. 1 root root   92 Mar 18 00:09 fedora16.repo\ndrwxr-xr-x. 2 root root 4096 Mar 18 01:27 repo.disabled\n<\/pre>\n<p>4. Run yum clean all to clear up your yum cache directory :<\/p>\n<pre>\n[root@fedora16 ~]# yum clean all\n<\/pre>\n<pre>\nCleaning repos: Fedora16-Repository\nCleaning up Everything\n<\/pre>\n<p>5. Steps completed. You can start using yum command as usual.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question : I am using Local DVD-ROM\/CD-ROM yum Repository on Fedora 16. But when i perform any yum command to install or update or remove the package\/module, i get the&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2351,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2057,2062],"tags":[1371,1536,1546,1944],"class_list":["post-2392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-yum","tag-fedora-16","tag-linux","tag-linux-utilities","tag-yum-repositories"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2392"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2392\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2351"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}