Can I Delete .dmg Files

The answer is yes. You can delete the.pkg/.dmg/.zip file after installing the app. It will not affect the app as both files are different. These packages are just containers. Part 3: How to Remove Unwanted iTunes Files with One Click? Part 1: How to Delete iTunes Backup Files Manually? An iTunes backup usually takes up at least 1 GB of storage. In some cases, it could be up to10+ GB. Moreover, Mac will not clear those files for you, so it's of importance to remove such backup files when they become useless.


One way to avoid keeping DMG files after installation | 7 comments | Create New Account

And just for clarification, think of the.dmg as a discardable disk. You have to load it up (you see the drive on the desktop) and you can access the files on it. Once you load it all up, just delete it (same as throwing the disk away) and you're good to go. The files themselves are copied (well should be copied) to the computer. Here's a script to automatically move the.dmg file to the trash when you eject the disk image. To use this script, select the mounted volume in the Finder (or in the 'Devices' section of the Finder sidebar), and trigger this script via your favorite macro app instead of ejecting the disk image normally. Aug 09, 2019  Securely Delete Files Using an Encrypted Disk Image. A lot of software for the Mac is distributed in disk images or.dmg files. Disk images are also a. How to Delete Files that Are In Use in OS X By Phil South – Posted on Mar 25, 2015 Mar 26, 2015 in Mac We’ve all had it, that time when you try to empty your trash in OS X and the system tells you it can’t delete the files because they are “in use,” when as far as you are aware, they’re not.

Click here to return to the 'One way to avoid keeping DMG files after installation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One way to avoid keeping DMG files after installation
Files

Easier solution:
Move the DMG to /tmp/ before opening it. Then forget about it.
Files in /tmp/ get deleted on reboot.
If you decide you want to keep it, move it back to your Downloads directory or wherever you want it.

One way to avoid keeping DMG files after installation

Great Idea!
So the cmd whould be:
mv '/Users/MyShortUsername/Path/To/MyDownloaded.dmg' '/private/tmp/'
Obviously, you must replace 'MyShortUserName' with your correct username , replace 'Path/To/' with the correct path to your dmg file and finally replace 'MyDownloaded.dmg' with the correct name of your dmg file.
If you don't use the quotes for the source path and the destination path, just remember to escape the spaces in the paths with backslash! (')

You know, you don't have to use /private/tmp. Just /tmp will do. In fact, it's preferred to use /tmp.

One way to avoid keeping DMG files after installation
Can I Delete .dmg Files

I go the other way. I keep ALL dmg files.
Every so often I move them to an 'Installers' folder, thus keeping the downloads folder clear. Less often I check the total size of the Installers folder and back up to CD/DVD and then clear it.

One way to avoid keeping DMG files after installation

Can I Delete .dmg Files After Installation

Or you could use a crontab:

0 20 * * * /Path/To/Script/clean.sh

With something like the following:

This will move any files in the ~/Downloads/ folder, to a child folder called 'archive' on a daily basis... then after 30 days, delete it.

Should You Delete Dmg Files

Although, run at your own risk... its job is to actually delete data.

Can I Delete .dmg Files From Downloads Folder

Wait wait, let me get this straight… if I have files I don't want to keep, I can put them in the trash to get rid of them?
God bless Mac OS X Hints.

Can I Delete .dmg File

Good luck USING them after you put them in the trash. This hint was about continuing to use DMGs that are in the trash. You know you aren't going to want to use it, so always throw it in the trash, then continue using it.
Personally, I download to the Desktop so everything I download is extremely obvious to me. I also have it sorted by 'Last Modified' so DMG downloads appear in the upper right. Can't forget those!