-
-
Save centminmod/e050cf02794fb5bcdf3090c28efab202 to your computer and use it in GitHub Desktop.
fix python34/python34u and python36/python36u conflicts on centos 7 in centminmod 123.09beta01 curl -4s https://gist.github.com/centminmod/e050cf02794fb5bcdf3090c28efab202/raw/python-conflict-fix.sh | bash
This file contains 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
#!/bin/bash | |
# fix python34/python34u and python36/python36u conflicts | |
if [[ "$(rpm -qa python34u)" ]]; then | |
# remove ius community python34u | |
yum -y remove python34u python34u-devel python34u-pip python34u-setuptools python34u-tools python34u-libs python34u-tkinter | |
# install epel python34 | |
yum -y install python34 python34-devel python34-pip python34-setuptools python34-tools python34-libs python34-tkinter | |
fi | |
# only apply to centos 7 as centos 6 epel doesn't have python36 | |
if [[ -f /bin/systemctl && "$(rpm -qa python36u)" ]]; then | |
# remove ius community python36u | |
yum -y remove python36u python36u-devel python36u-pip python36u-setuptools python36u-tools python36u-libs python36u-tkinter | |
# install epel python36 | |
yum -y install python36 python36-devel python36-pip python36-setuptools python36-tools python36-libs python36-tkinter | |
fi | |
if [[ ! "$(rpm -qa cmake3)" ]]; then | |
# reinstall removed dependencies from above removed ius community packages | |
yum -y install cmake3 cmake3-data | |
fi |
Thank you
Thank you! Saved tons of errors.
yes!!! it saved me..Thanks
Thank you so much.. saved my time and efforts and helped me from braking my centos 7 setup. :)
Thanks a ton!!
+1 Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this script!