|
|
Subscribe / Log in / New account

Arch Linux drops Python 2

Arch Linux drops Python 2

Posted Sep 23, 2022 15:54 UTC (Fri) by Amolith (subscriber, #137875)
Parent article: Arch Linux drops Python 2

Hopefully this starts a sort of chain reaction; Python 2 should be dropped from every distro :)


to post comments

Arch Linux drops Python 2

Posted Sep 23, 2022 15:56 UTC (Fri) by amacater (subscriber, #790) [Link] (8 responses)

It already has been dropped by Debian, Ubuntu, Red Hat and derivatives, I think.

Arch Linux drops Python 2

Posted Sep 23, 2022 16:11 UTC (Fri) by plugwash (subscriber, #29694) [Link] (5 responses)

Debian have dropped most python 2 modules, but they haven't yet dropped python 2 itself.

Arch Linux drops Python 2

Posted Sep 23, 2022 16:24 UTC (Fri) by rahulsundaram (subscriber, #21946) [Link] (4 responses)

Only RHEL9+ doesn't ship with Python2

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.

Arch Linux drops Python 2

Posted Sep 23, 2022 19:42 UTC (Fri) by tome (subscriber, #3171) [Link] (3 responses)

> Fedora only dropped Python2 by default (there is python2.7 package still in the repo) and unlike Arch didn't symlink Python to Python3.

/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.

Arch Linux drops Python 2

Posted Sep 23, 2022 20:02 UTC (Fri) by tome (subscriber, #3171) [Link] (2 responses)

Update: The fedora package python-unversioned-command.noarch is installed on these boxes. Dnf history shows no record of that package being installed manually.

For the historical record...

Posted Sep 24, 2022 16:14 UTC (Sat) by mattdm (subscriber, #18) [Link]

Arch Linux drops Python 2

Posted Sep 24, 2022 16:38 UTC (Sat) by rahulsundaram (subscriber, #21946) [Link]

> Update: The fedora package python-unversioned-command.noarch is installed on these boxes. Dnf history shows no record of that package being installed manually.

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.

Arch Linux drops Python 2

Posted Sep 23, 2022 16:19 UTC (Fri) by stephane (subscriber, #57867) [Link] (1 responses)

Not at all, still present in Debian, Ubuntu, RH and Fedora Rawhide
https://packages.debian.org/search?keywords=python2

Arch Linux drops Python 2

Posted Sep 23, 2022 16:26 UTC (Fri) by rahulsundaram (subscriber, #21946) [Link]

> Not at all, still present in Debian, Ubuntu, RH and Fedora Rawhide

True for all others but RHEL 9 did drop Python2 first. It was released in May this year.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds