Skip to content

Instantly share code, notes, and snippets.

@smijar
Created May 5, 2022 15:32
Show Gist options
  • Save smijar/82e7cdd662d909e6247ad12e1212287b to your computer and use it in GitHub Desktop.
Save smijar/82e7cdd662d909e6247ad12e1212287b to your computer and use it in GitHub Desktop.
# yum relies on python2 hence breaks when updating to python3
# fix yum to explicitly use python2 because when we replace with python 3, yum breaks
$ sudo sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2/' /usr/bin/yum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment