MacOS Mojave PKG – Unable to Delete .pkg Files in /Library/Updates/

macosmojavepkg

I'm doing my semi-annual look around via Disk Inventory X, and I'm seeing some .pkg files located at /Library/Updates/061-41421 with names like macOSUpd10.14.6.pkg and FullBundleUpdate.pkg weighing in at sizes like 1.7gb. They cannot be casually moved to the Trash and sudo rm macOSUpd10.14.6.pkg yields the Operation not permitted message.

Can anyone tell me what these are for? / Are they necessary to keep around? / If no, how do you remove them? And most importantly, why in the world would Apple keep these on board after the contents have been distributed via an update?

Thanks

Best Answer

  1. Reboot in Recovery mode by restarting your Mac and holding Command+R. It can take more time to boot as usual, that's OK, just be patient.
  2. In the top menu go to Utilities and open Terminal.
  3. Type csrutil disable and press Enter.
  4. Type reboot and press Enter to reboot again.

Now delete the update .pkgs but the .plist files will contain wrong info, if any, about the download status etc. I am not sure if they have to be deleted or not.

<key>InstallAtLogout</key>
    <array/>
    <key>ProductPaths</key>
    <dict>
        <key>061-41421</key>
        <string>061-41421</string>
    </dict>

Also, disable automatic download from System Preferences → Software Updates.

Now you should re-enable System Integrity Check. It is there for a reason.

  1. Reboot in Recovery mode by restarting your Mac and holding Command+R.
  2. In the top menu go to Utilities > Terminal.
  3. Type csrutil enable and press Enter.
  4. Type reboot and press Enter to reboot again.

How to completely disable Siri on Sierra?