Delete MacOS upgrade files (things in the /Library/Updates folder)

The computer has been used for seven or eight years, and the storage is not enough. A scan found that there were more than 9 gigabytes of update files in the system update (/Library/Updates) file, and they were not allowed to be deleted. After searching online, I successfully deleted it through the following methods.

  1. Enter recovery mode
    Restart the computer, press cmd+R at the same time, release your hand when you see the white apple progress bar, and then it will enter recovery mode.
  2. Turn off System Integrity Protection (SIP)
    Find the utility in the toolbar at the top of the screen (it should be the third one from the left), open the terminal, and enter the following command: < /span>
csrutil disable
  1. Enter reboot in the terminal to restart the computer
reboot
  1. Delete upgrade files
sudo rm -rf /Library/Updates
  1. Re-enter recovery mode and turn on system integrity protection
csrutil enable
  1. Restart the computer
reboot

Finish!

おすすめ

転載: blog.csdn.net/kaixinjiaoluo/article/details/124521994