last time somebody asked My Volkerding re: slackware if it was safe to remove python 2.7 reply was 67 packages relied on it. It is being replaced by python 3.7.x but to remove python so there s no python ?
This python 3.8.5 was installed manually by me in the opt folder using wget command and the python URL link.after untarring it a folder was created inside opt
I had to install GCC libraries first. Then I used './configure --enable-optimizations' command.then when I used 'make altinstall' it gave some errors.hence my plan to remove it.this python did not come originally with rhel 8 and this is on a personal desktop.
If you installed it manually, via the makefile - then use the uninstall target of the makefile to uninstall it.
If you installed as root, you will need to su to root, or use sudo in order to run the uninstall command below.
NOTE: If the original installation did not complete successfully - you'll almost certainly get errors from the uninstall script too - which is to be expected.
After running the uninstall script - you can then remove all of the python 3.8.5 related stuff from /opt/.
If that doesn't work, then you'll have to remove things completely manually.
So you'd need to take a look at the makefile and read through the commands used in the altinstall build-target and see what things were copied where.
Then you'll have to manually remove those items.
But do so very carefully, or you might bork something!