Arch Linux drops Python 2
Arch Linux drops Python 2
Posted Sep 23, 2022 15:56 UTC (Fri) by amacater (subscriber, #790)In reply to: Arch Linux drops Python 2 by Amolith
Parent article: Arch Linux drops Python 2
Posted Sep 23, 2022 16:11 UTC (Fri)
by plugwash (subscriber, #29694)
[Link] (5 responses)
Posted Sep 23, 2022 16:24 UTC (Fri)
by rahulsundaram (subscriber, #21946)
[Link] (4 responses)
https://access.redhat.com/solutions/4455511
Fedora only dropped Python2 by default (there is python2.7 package still in the repo) and unlike Arch didn't symlink Python to Python3.
Posted Sep 23, 2022 19:42 UTC (Fri)
by tome (subscriber, #3171)
[Link] (3 responses)
/usr/bin/python is a symlink to /usr/bin/python3 on all my fedoras, and it was done by package upgrades, not by me manually. It might depend on the fact that somewhere along the way I removed all python2 packages, but I can't remember in what order things were done. I'll look in my dnf histories if anyone is interested.
Posted Sep 23, 2022 20:02 UTC (Fri)
by tome (subscriber, #3171)
[Link] (2 responses)
Posted Sep 24, 2022 16:14 UTC (Sat)
by mattdm (subscriber, #18)
[Link]
Fedora Linux 31 change: https://fedoraproject.org/wiki/Changes/Python_means_Python3
Posted Sep 24, 2022 16:38 UTC (Sat)
by rahulsundaram (subscriber, #21946)
[Link]
This prompted me to look again. Apparently, the defaults vary depending on how you are using it, in the official containers published by the project, this package isn't installed by default and therefore "python" just says command not installed and works similar to RHEL8 (which also doesn't have /usr/bin/python by default either). If you have been upgrading from Fedora prior to when this change was introduced, it doesn't appear to be installed. However in a fresh installation of Fedora 36 it does show up.
Posted Sep 23, 2022 16:19 UTC (Fri)
by stephane (subscriber, #57867)
[Link] (1 responses)
Posted Sep 23, 2022 16:26 UTC (Fri)
by rahulsundaram (subscriber, #21946)
[Link]
True for all others but RHEL 9 did drop Python2 first. It was released in May this year.
Arch Linux drops Python 2
Arch Linux drops Python 2
Arch Linux drops Python 2
Arch Linux drops Python 2
For the historical record...
Arch Linux drops Python 2
Arch Linux drops Python 2
https://packages.debian.org/search?keywords=python2
Arch Linux drops Python 2