I have Alma Linux 9 in my VM, which is not compatible with python 2.7, but I need backward compatibility as well.
I had installed python2.7 from the source code and created a softlink between /usr/bin/python and /usr/local/bin/python2.7. It was working.
But, now I am unable to install any new packages using dnf.
I tried to make /usr/bin/python point back to python3.9. Now python is not working at all in my system. That is typing python in the terminal doesnot give any outputs.
I am trying to find a way in which dnf in alma linux 9 works with python 2
anupurba mitra is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1