jacksunders wrote:
running MacOs Mojave, and I want to delete an installer for macos high sierra. Well, long story if I told you how I got it, but I created this .dmg via terminal.
Well, its bit long process but I suppose it is worth it.
Is there any alternative, like some way to actually delete a system file?
"Well, long story if I told you how I got it, but I created this .dmg via terminal."
I would not consider this as a a system file, it is a standalone installer.dmg
Maybe it would be worth hearing how you, via terminal create this .dmg that is given you problems.
I will say it is a bit of an anomaly your problem. If you created it, you should be able to delete it.
If you want to create a High Sierra USBinstaller, there is a single command line:
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Notice the installer needs to be in your Application folder, and your usbflash drive needs to named "MyVolume". When you erase and format the flash drive in preperation using DiskUtility, choose GUID partition map, and Extended Journaled as the file type. A freshly formated drive will by default get renamed to "Untitled".
However, creating a USBinstaller using the command line is not going to delete the .dmg
If you want to simply delete the .dmg, then I would highlight the .dmg and command i opens the info pane—see if you can change the permissions or ignore permissions there in order to delete it.