Hide Forgot
Description of problem: Two possibly related issues. yum repolist --verbose does not list all the baseurl defined in a .repo file. On RHEL5 this is the only issue. On RHEL6, the same issue occurs, but yum repolist also seems to list the Repo-baseurl twice: # yum repolist enabled --verbose Loading "rhnplugin" plugin Loading "etckeeper" plugin Loading "priorities" plugin Loading "product-id" plugin Loading "security" plugin Loading "subscription-manager" plugin Updating Red Hat repositories. Config time: 0.077 Yum Version: 3.2.29 Looking for repo options for [rhel-x86_64-server-6] Looking for repo options for [rhel-x86_64-server-optional-6] Setting up Package Sacks pkgsack time: 0.026 Repo-id : epel Repo-name : Extra Packages for Enterprise Linux 6 - x86_64 Repo-revision: 1321145355 Repo-tags : binary-x86_64 Repo-updated : Sun Nov 13 12:00:51 2011 Repo-pkgs : 6,560 Repo-size : 6.1 G Repo-baseurl : http://ftp.swin.edu.au/epel/6/x86_64 Repo-baseurl : http://ftp.swin.edu.au/epel/6/x86_64/ Repo-expire : 21,600 second(s) (last: Mon Nov 14 14:43:18 2011) Repo-id : rhel-x86_64-server-6 Repo-name : Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) Repo-updated : Thu Nov 10 00:10:14 2011 Repo-pkgs : 5,577 Repo-size : 6.7 G Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6 Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6 Repo-expire : 21,600 second(s) (last: Mon Nov 14 14:43:22 2011) Repo-id : rhel-x86_64-server-optional-6 Repo-name : RHEL Server Optional (v. 6 64-bit x86_64) Repo-updated : Thu Nov 10 00:10:14 2011 Repo-pkgs : 3,656 Repo-size : 3.6 G Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-optional-6 Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-optional-6 Repo-expire : 21,600 second(s) (last: Mon Nov 14 14:43:24 2011) Ideally this should be fixed to output all baseurls for a given repo, rather than outputting one Repo-baseurl multiple times.
Seems it was the formatting in my repo file that caught me out: https://lists.dulug.duke.edu/pipermail/yum/2005-October/007643.html There needs to be whitespace before the second baseurl in the repo file. Maybe the documentation should be updated to more clear? For the second issue, Repo-baseurl is still listed twice in RHEL6, as opposed to once in RHEL5.
*** This bug has been marked as a duplicate of bug 697885 ***