Actualiza python sin romper yum

Recientemente instalé Python 2.7.3 en una máquina CentOS compilando desde la fuente. Python 2.7.3 se instala en /opt/python2.7 y cuando lo instalé, simplemente cambié / usr / bin / python para apuntar a la nueva versión. Esto aparentemente es incorrecto porque cuando lo hice se rompió yum. Me gustaría obtener lo siguiente.

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.3 (default, May 15 2012, 17:45:42) 
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

Cambié / usr / bin / python para señalar al python 2.6.6 pero ahora 2.6.6 es la versión predeterminada de python. ¿Algúna idea de cómo arreglar esto?

Respuestas a la pregunta(7)

Su respuesta a la pregunta