Troubleshooting
Problem
Command yum repolist shows status 0 due to multiple .repo files in /etc/yum.repos.d
Cause
Multiple repository definition .repo files
Diagnosing The Problem
List available repositories:
[root@nzhost-ha1 repodata]# yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
IBM IBM Netezza Yum Repository 0
PDA_Official_Mirror rhel5-security-stream 0
repolist: 0
Review contents of directory with repository definition files:
[root@nzhost-ha1 upgrade]# cd /etc/yum.repos.d/
[root@nzhost-ha1 yum.repos.d]# ls
ibm_yum.repo redhat.repo rhel-debuginfo.repo yum_netezza_com.repo
Resolving The Problem
Remove obsolete .repo file(s) or rename file(s) without .repo extension, then run:
yum clean all; yum repolist
E.g.
[root@nzhost-ha1 yum.repos.d]# yum clean all; yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning up Everything
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
PDA_Official_Mirror | 951 B 00:00
PDA_Official_Mirror/primary | 135 kB 00:00
PDA_Official_Mirror 288/288
repo id repo name status
PDA_Official_Mirror rhel5-security-stream 288
repolist: 288
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21972347