|
|
eb5f31 |
commit d83aab7e518f77a0de1e938fc4a7e7c4c55f1a17
|
|
|
eb5f31 |
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
|
|
|
eb5f31 |
Date: Fri May 6 14:47:55 2016 +0200
|
|
|
eb5f31 |
|
|
|
eb5f31 |
Recommend --disablerepo and subscription-manager when a repo fails. BZ 1195745
|
|
|
eb5f31 |
|
|
|
eb5f31 |
diff --git a/yummain.py b/yummain.py
|
|
|
eb5f31 |
index 32680a8..b1666a2 100755
|
|
|
eb5f31 |
--- a/yummain.py
|
|
|
eb5f31 |
+++ b/yummain.py
|
|
|
eb5f31 |
@@ -85,13 +85,18 @@ def main(args):
|
|
|
eb5f31 |
distribution release than is supported by the repository (and the
|
|
|
eb5f31 |
packages for the previous distribution release still work).
|
|
|
eb5f31 |
|
|
|
eb5f31 |
- 3. Disable the repository, so yum won't use it by default. Yum will then
|
|
|
eb5f31 |
- just ignore the repository until you permanently enable it again or use
|
|
|
eb5f31 |
- --enablerepo for temporary usage:
|
|
|
eb5f31 |
+ 3. Run the command with the repository temporarily disabled
|
|
|
eb5f31 |
+ yum --disablerepo=%(repoid)s ...
|
|
|
eb5f31 |
+
|
|
|
eb5f31 |
+ 4. Disable the repository permanently, so yum won't use it by default. Yum
|
|
|
eb5f31 |
+ will then just ignore the repository until you permanently enable it
|
|
|
eb5f31 |
+ again or use --enablerepo for temporary usage:
|
|
|
eb5f31 |
|
|
|
eb5f31 |
yum-config-manager --disable %(repoid)s
|
|
|
eb5f31 |
+ or
|
|
|
eb5f31 |
+ subscription-manager repos --disable=%(repoid)s
|
|
|
eb5f31 |
|
|
|
eb5f31 |
- 4. Configure the failing repository to be skipped, if it is unavailable.
|
|
|
eb5f31 |
+ 5. Configure the failing repository to be skipped, if it is unavailable.
|
|
|
eb5f31 |
Note that yum will try to contact the repo. when it runs most commands,
|
|
|
eb5f31 |
so will have to try and fail each time (and thus. yum will be be much
|
|
|
eb5f31 |
slower). If it is a very temporary problem though, this is often a nice
|