News for hackers. Stuff that matters.
Re:Apple removes Python 2.7 in macOS 12.3 beta by mroche on Friday January 28, 2022 @10:24AM (#30115729)
RHEL and macOS are two very different products with two very different audiences and can hardly be compared like this.

That being said, Python 2 will last through the end of RHEL 7's lifespan through June 2024, and that includes the AppStream module in RHEL 8 which will similarly end support in June 2024. After that customers are recommended to upgrade to a supported version of Python or continue using Python 2.7 at their own self-supported risk, we will not support them in that endeavor.

RHEL 9 (due out in a few months) does not ship Python 2.7.

https://access.redhat.com/support/policy/updates/rhel8-app-s...

Re:Apple removes Python 2.7 in macOS 12.3 beta by seanw444 on Friday January 28, 2022 @11:35AM (#30116923)
With Ubuntu, if you delete Python, it obliterates everything. Have fun re-installing your system. Learned that the hard way. You can bet I "use Arch btw" now.
Re:Apple removes Python 2.7 in macOS 12.3 beta by mroche on Friday January 28, 2022 @12:51PM (#30118004)
I don't see how that's relevant here, unless you interpreted my statement to mean we will be removing Python 2.7 in RHEL 8. That isn't happening, the module will remain in the AppStream repositories but will not receive any support.

Removing the system Python is prevented on RHEL/Fedora (with an exception). The package manager, DNF and YUM, are marked as protected which prevent their removal. You'd need to remove the protection file from /etc/dnf/protected.d before you can do that. Removing the system python would remove the package manager which depends on it, therefore the transaction is stopped. Using the RPM utility directly also will not work unless you a) pass --nodeps or b) list out every single dependency at the same time manually. You can test this in the CentOS containers with the following:

quay.io/centos/centos:7:

  yum remove python
  rpm -ev python
quay.io/centos/centos:stream8

  dnf remove platform-python
  rpm -ev platform-python
quay.io/centos/centos:stream9

  dnf remove python3
  rpm -ev python3
Best practice policy: use yum/dnf, not rpm for any package management.
Re:Apple removes Python 2.7 in macOS 12.3 beta by seanw444 on Friday January 28, 2022 @01:01PM (#30118147)
You're right, it's not relevant here. I somehow managed to replied to you instead of the comment I was thinking about responding to. Weird.
Re:Apple removes Python 2.7 in macOS 12.3 beta by mroche on Friday January 28, 2022 @01:06PM (#30118232)
No worries, I make that mistake all the time; I should've considered that possibility.