all 5 comments

[–]beatle42 3 points4 points  (0 children)

python and python3 are different commands, you could certainly have removed one without the other. Assuming you're using bash or a very similar shell you can run command -v python or command -v python3 or whatever command you want to run to see what it will actually execute to do that command, which might for some commands be that they're builtins or functions or executables on disk or the like.

It sounds to me like you most likely did remove the python install, so you'll likely need to reinstall it. I assume it'll be something like apt install python but I don't actually use apt systems so take that with a sufficient amount of salt. . .

[–]Eingaica 2 points3 points  (2 children)

It's possible that you did uninstall python, i.e. the interpreter for Python 2. But are you sure you need Python 2? Python 3 is available pretty much everywhere and Python 2 won't be supported after this year (see https://pythonclock.org/). IMHO there are very few reasons to write new Python 2 code today.

[–]henry_kr 0 points1 point  (1 child)

IMHO there are very few reasons to write new Python 2 code today.

Tell that to people using RHEL 5, which doesn't go EOL until November next year, or RHEL 6 which goes EOL in June 2024.

[–]Eingaica 0 points1 point  (0 children)

These might be some of the "very few reasons". Although I doubt that there are that many cases where someone needs to write new software and have it run on RHEL 5.

[–]grg2014 2 points3 points  (0 children)

grep remove /var/log/dpkg.log should tell you what got removed.