Sample Header Ad - 728x90

how to identify wrong/bad repo in my linux machine?

3 votes
2 answers
1602 views
dear friends and colleges, I want to share with you the following issue , and I am sure this important to some of the colleges here I want to verify the that all repo in my linux machine are ok so we run the command - **yum repolist** as the following we can see the errors about one of the repo yum repolist Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. file:///var/repoha/bility/h5th5th54/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /var/repoha/bility/h5th5th54/repodata/repomd.xml" Trying other mirror. file:///var/repoha/bility/h5th5th54/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /var/repoha/bility/h5th5th54/repodata/repomd.xml" Trying other mirror. Storage | 4.1 kB 00:00:00 Storage/group_gz | 4.9 kB 00:00:00 Storage/primary_db | 29 kB 00:00:00 local | 4.1 kB 00:00:00 local/group_gz | 136 kB 00:00:00 local/primary_db | 3.6 MB 00:00:00 repo id repo name status bility Red Hat Enterprise Linux Server release 7.2 (Maipo) - bility 0 Storage Red Hat Enterprise Linux Server release 7.2 (Maipo) - Storage 37 local Red Hat Enterprise Linux Server release 7.2 (Maipo) - Local 4,620 repolist: 4,657 so in order to verify if repo are ok or not we want to check the status of $? [root@trump yum.repos.d]# echo $? 0 but we get 0 why we get "0" ? in-spite repo isn't correct? ***my question is how to identify wrong/bad repo in my linux machine ?***
Asked by yael (13936 rep)
Apr 26, 2018, 03:03 PM
Last activity: Apr 9, 2025, 05:36 PM