My macOS Sierra Installer isn't working, so I'd like to uninstall it in order to reinstall it later. The only problem is that I can't delete it directly because I don't have admin privileges on this computer. (I've also tried rm -r filename
in Terminal.) How could I uninstall the installer without directly deleting it?
macOS Sierra – How to Uninstall the Installer
macos
Related Question
- MacOS – Speedest Installation macOS Sierra from Thunderbolt, MacBook Air
- MacOS – Cannot enable FileVault on macOS High Sierra
- MacOS – Upgrading Catalina on non-supported hardware fails with “Install macOS Catalina Application Is Damaged”
- macOS – MacBook Boots into Recovery No Matter Startup Disk Selected
- MacOS – Uninstall Anaconda from macOS Big Sur
Best Answer
There’s no uninstallation procedure. Despite the
.app
extension,Install macOS Sierra.app
is essentially just a disk image waiting to be installed…no system modifications were made by merely downloading it, so deleting it is all that’s needed for removal.That said, as Avery Chan mentioned, you still need sufficient privileges in order to remove it.
The command
rm -r /Applications/Install\ macOS\ Sierra.app
won’t execute without prepending it withsudo
. But usingsudo
requires an administrative, master, or root password...The advisable solution is to ask the system administrator to remove it. That said, if this isn’t possible, a few workarounds exist:
Reset The Admin Password (note that if Filevault is enabled, this won’t work):
Terminal
from your Utilities Menu Barresetpassword
in the prompt.That’ll allow you to access the admin account and subsequently delete the Installer.
Use Single User mode (if Filevault is enabled or a firmware password is set, this won’t work either). While using this method will allow you to remove the file without resetting the admin’s password, it’s not advisable to make filesystem modifications at all in this manner, so proceed at your own risk.
/sbin/fsck -fy
. Don’t be alarmed by output such as “FILESYSTEM WAS MODIFIED”, that’s normal. It just means the filesystem was repaired./sbin/mount -uw /
cd /Applications
to migrate to the relevant directory.echo $(rm -rf Install\ macOS\ Sierra.app)
before directly running it. Using actual backticks to nest therm
command is preferable to$()
, I just can’t format it properly here.rm -rf Install\ macOS\ Sierra.app
reboot