How to uninstall Python2.6
fedora11, linux, python
Solution
Uninstalling the system Python is a bad idea. There are many other packages and softwares that depend on it. It'll be better that you use python2.7 by either modifying the $PATH or creating an alias e.g. python2.7 that points to the python that you installed in /opt dir.
Problem
On my Fedora11 machine which has python2.6 pre-installed on it, I was able to successfully install python 2.7 using the following steps: ``` wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 tar -xvjf Python-2.7.tar.bz2 cd Python* ./configure --prefix=/opt/python27 make make install vi ~/.bash_profile ## replaced PATH=$PATH:$HOME/bin ## with PATH=$PATH:$HOME/bin:/opt/python27/bin ## reload .bash_profile source ~/.bash_profile echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf ldconfig ``` However, when I checked the python version the system uses via terminal (python -V), it still shows python 2.6. How will I make the system use python2.7 as its default python? Or if possible, how will I uninstall python2.6? Thanks in advance!