Created
April 4, 2016 13:54
-
-
Save bndabbs/83e0e1d11e3ec69f7f9b68bcb9d17b56 to your computer and use it in GitHub Desktop.
disable all yum repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repos=$(yum -v repolist |grep Repo-id |awk '{print $3}'|awk -F/ '{print $1}') | |
| for i in "${repos[@]}"; do yum-config-manager --disable $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment