[Pythonmac-SIG] Uninstalling

Glyph glyph at twistedmatrix.com
Fri Jul 21 04:22:29 EDT 2017


> On Jul 20, 2017, at 3:24 AM, Piet van Oostrum <piet-l at vanoostrum.org> wrote:
> 
> Normally you should never touch anything in /usr/bin or /usr/lib. That is Apple territory.

You can't any more.

$ touch /usr/bin/just-testing
touch: /usr/bin/just-testing: Operation not permitted
$ sudo touch /usr/bin/just-testing
Password:
touch: /usr/bin/just-testing: Operation not permitted

Since System Integrity Protection came out with El Capitan, unless you reboot into recovery mode and type some "void your warranty" commands into the terminal app on the recovery partition, it's simply no longer possible for 3rd-party applications and installers to write files into /usr/bin.  Attempting to install over /usr/bin/python on any macOS released in the last 2 years will just fail.

-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20170721/272d973f/attachment.html>


More information about the Pythonmac-SIG mailing list