Can You Delete A Dmg File After Installing


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

A DMG is like a ZIP file, but it mounts a virtual drive on your desktop for installation. You must 'eject' (or unmount) the virtual drive, then you can delete the DMG file from your computer. If the DMG has a virtual drive mounted, then you cannot delete it because it is still open. May 26, 2019  The application will no longer be available after you delete the DMG file. When you finish installing the application, you will have two copies, one in DMG format and one in the Applications folder. You can remove a copy of DMG because you no longer need it.

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.

Jul 20, 2017  These sorts of installers can do things the drag and drop installers can’t do, like installing system services and putting files elsewhere on the computer. When you’re done installing the app, you can delete the PKG file and any DMG file it came in (after ejecting it, of course). Aug 13, 2018 The app will no longer be there after you eject the DMG. When you’re done installing the app, you’ll be left with two copies of it, one in DMG form, and one in your Applications folder. The DMG one can go since you don’t need it anymore.

Dmg
One way to avoid keeping DMG files after installation

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

Can You Delete A Dmg File After Installing Video

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

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 You Delete A Dmg File After Installing Windows 7

Or you could use a crontab:

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

With something like the following:

Can You Delete A Dmg File After Installing Windows 10

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.

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

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.

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!