0

How to disable yum repositories in linux

In my yum.repos.d file contain many repos, which may sometimes return some error. How to disable some unwanted repos but it may require later. So instead of removing it should be disabled.

yum utils Linux Add a comment
mason
asked Feb 13 2017

Answer

0

Instead of disabling repos, just create a temp directory inside /etc/yum.repos.d ; Move the unwanted repos to that temp directory. Now when you check with yum repolist command, the repos inside that directory will not be shown...

Add a comment
jagannatharumugam
asked Feb 15 2017
edited Oct 05 2018
Post your Answer