Amazon.com Widgets
OS X Help Logo
Insanely simple tutorials for the first time Macintosh user
✭ Stay up to date... Don't forget to subscribe to our email newsletter in the Email Updates form. ✭
OS X 10.6 Snow Leopard ✭ The best $24.99 you will spend on your Mac!

Understanding file downloads and their remnants

Written by: hexley on Wednesday March 26th 2008, 7:10 pm

Filed under: Finder, OS X 10.5

Finder Header LogoIf there ever was an area in which there seems to be massive confusion on OS X it is with downloading files. Time and time again, I see a user download a file, and not know what to do with it. Worse, once they figure out what to do with the file, they have absolutely no idea what to do with the remnants left behind.

If you are a new Macintosh user, and you only read one post on OS X Help, please, read this post. Downloading files is something almost all of you will do on a daily basis. From applications to photos, there is no shortage of file downloads to contend with.

Where downloads end up
In all cases, the default settings on Macintosh OS X 10.5 Leopard is to put any file you download into your downloads folder. This of course is located in your home folder. Any file you download, at least through an automated means, will end up in this location.

The many types of files
Some files downloaded are what they seem; they end in .jpg, and are in fact an image. You can open them, and you will see an image. Other times you end up with a file called a Disc Image, or .dmg file. Other times you may end up with a .zip file, others a .sit file. Worse case, you end up with a file that is a combination of all of the above mentioned file types.

The simple .dmg file type
.dmg files are a file format called a Disc Image. It is very much like a real hard drive. The only difference is that it is a small portable file that can be downloaded, or exchanged. For all other intents and purposes, it is a portable hard drive. .dmg files are pretty simple to deal with, once you understand how they work.

Downloading a .dmg
The next time you download a file, and it happens to be a .dmg, OS X should jump into automated mode. The .dmg file will reside in your downloads folder; but, it will also be mounted on your desktop. In nearly all cases, the .dmg will automatically open and a white drive icon will show up on your desktop.

What is inside the white drive icon is what you are after. Those are the files you want to keep.

Dealing with the contents of a .dmg
What is inside the .dmg is where things can become a little fragmented. Most of the time, you have a single file, usually the application. Just drag it out of the white drive icon, and put it into your Applications folder. The application is now installed. Uninstalling is as simple as reversing the process, and moving the file from the applications folder to your trash.

In other cases, the contents of the .dmg will be a full-blown installer. In this case, you launch the installer, and let it do its thing. This usually amounts to a simple double click, which will give you some options as to how to install the file or application.

Some developers who make these .dmg files take an extra step, and automaticity copy the file to your applications folder. They even clean up afterward and delete all the files the .dmg has left laying around.

What to do with the .dmg when you’re done?
Once you have installed your application or file, you are still left with a white drive icon on your desktop, and the original file you downloaded, which should still be in your downloads folder. This is where many new users get confused.

Since you have installed the application, you are free to delete everything else it left behind. First, take the white drive icon, move it to the trash. This will unmount the .dmg. Next, take the .dmg file in your downloads folder, and move it to the trash as well. You can now safely empty your trash if you so desire.

Never be afraid to clean up these files once you have installed the main application. Since you downloaded them from the internet, you can always download them again. In most cases, not cleaning up the files will leave you with duplicates, which can be troublesome when it comes time to perform an update.

I consider my downloads folder a temporary location. At any time, I feel very safe in deleting everything in it, as I know I have already installed, moved, or copied what I needed. I also know, more than likely, I can always just download again.

It is my hope that you only ever run into .dmg files. While I am hopeful, some developers and distributors of software are yet to get a clue. In these cases, you can run into any number of very confusing cases, let’s go through each one.

The Stuffit Archive
Back in the OS 9 days, and the early days of OS X, there was a compressed file format called a Stuffit Archive. You will run into them from time to time. You can tell them apart by the ending part of the file name, called the file extension. It will be either .sit or .sitx. In this case, you need another program just to open the file. Many people end up downloading a program called Stuffit, which will in fact do a very nice job of uncompressing the files.

I am very much against Stuffit, as it tends to install a lot of files deep into your computer. The company also tries hard to push you to buy the “Pro” version of their software, when all you need is the free version. I have found for the rare cases I run into a stuffit file, a simple application called Unarchiver does a wonderful job. It downloads as a single file, a plain, clean application. All you have to do to install it is move it to your applications folder.

The next time you run into a .sit or .sitx file, just open it, and it will be uncompressed. You can then throw away the original .sit or .sitx file, and are left with the file you just uncompressed.

The almost ubiquitous .zip file
If you have come from Windows, you are more than likely familiar with a .zip file. .zip files are more or less the same on a Macintosh, as they are on Windows. Just like a Stuffit file, a .zip file is nothing more than a container file, which holds one or more files inside it. Your goal is to simply get at the files inside that .zip container.

Leopard, and even a few earlier versions of OS X, have the ability to decompress, or unzip these files, built right in. You do not need any additional software to deal with a .zip file. Just open the .zip file, and OS X will unzip the file, leaving you with the contents ready for you to manipulate any way you desire. Again, once you have unzipped the file, feel free to throw away the original .zip file, and just keep the files you most recently unzipped.

If it can be difficult, it will
Once in a blue moon, you will download a file that has been zipped, compressed, and otherwise packed up multiple times. For example, you may download a file called example.dmg.zip. The people who make these files are the worst offenders at confusing a new computer user. Given the above example, you will end up with the following:

example.dmg.zip – original file
example.dmg – disc image once unzipped
example – the file or folder you really wanted

If you run into this case, while it can be confusing, just step through it. Get the main file(s) you want, and delete all the rest. In the above example, you can throw away example.dmg.zip and example.dmg, and simply copy or install the data that is inside the white disc image.

Cleanliness is next to Godliness at times, try your best to keep your downloads folder nice and clean. Over time, you will start to understand the many processes in which files can be distributed.

Want to be reminded when there are new posts?
Get post updates in your email or subscribe via RSS.
26 Comments so farLeave a comment

Hi, I am a bit confused about your suggestion to trash the mounted .dmg file after installing an app. I normally unmount the image and trash the .dmg. Is it a wrong procedure? Does it leave unwanted remnants? Thanks, and keep up the great work

Comment by emanuele 03.26.08 @ 8:49 pm

I read about this whole topic already on Mac Kindergarten earlier this week.

Comment by Dave 03.27.08 @ 1:28 am

@emanuele, yes, you are correct, and I will clarify the post. When I state to put the image in the trash, it means to unmount it. I have found many users have a hard time understanding what an “image” is. I should clarify.

Comment by Scott Haneda 03.27.08 @ 4:24 am

Ha, I was collecting those dmg’s in a file till I figured out/read somewhere that they get tossed after gettin’ the application.

Comment by JimB 03.27.08 @ 1:50 pm

Thanks for the article!

I find with all new Mac users, they tend to mount the DMGs and run applications directly from them (unless there are visible instructions to do otherwise, which some developers are kind enough to include).

On top of that, they never trash any of the DMG or ZIP files.

I have high hopes that Apple will sometime address this major confusion point for new users.

Comment by Ron 03.27.08 @ 7:25 pm

@JimB, exactly, people get so caught up in the idea that deleting is destructive, that they tend to hold onto everything. As time goes on, you forget what you really need or not, and end up just keeping everything. Glad this helped to explain a few things to you.

Comment by Scott Haneda 03.28.08 @ 7:10 am

I have a file that I save all my DMGs in. I find it is helpful when setting up a new machine to have a copy of all the bits of software I have downloaded over the years.

Comment by WetcoastBob 03.28.08 @ 8:01 pm

Hi, Scott,
Can you explain why it is necessary on a Mac to drag discs and other items to the trash (eject) before removing or disconnecting them? I don’t ever remember getting into trouble for doing so on a PC, but my Mac scolds me any time I forget to do so.

Comment by Matt Nikos 03.28.08 @ 11:27 pm

@Matt Nikos:

When you eject a disk image or physical device such as a thumb drive or external hard drive, you are ensuring that any remaining changes made to the files and other information on that device gets updated before you pull it out of the port. Mac OS X is based on BSD, which, like other Unix derivatives, will cache any changes in RAM before committing them to the physical device. This speeds up transfers for the end user, but the downside is that the changes aren’t final until the drive is ejected. This means that if you don’t eject before removing the hardware, there’s a small chance you may “lose sync” with the data still in RAM and could end up with corrupted files. By ejecting every time, you are ensuring that your data is not corrupted.

I may be wrong, but I believe that the reason you probably never had an issue with it on a PC is because you can tell the OS not to warn you about such things. Also, Windows does handle such caching a bit differently; given sufficient time the data in RAM will sync with the device in a background process, making an eject command unnecessary most of the time.

P.S.: Scott, sorry if I stepped on your toes here but I figured I’d throw in the answer since I was here. No offense intended.

Comment by Morgan 03.29.08 @ 5:28 am

@WetcoastBob, yes, drive space is cheap these days and you can in fact safely safe anything you like. I would be a little worried that the files are out of date. Software is updated so often these days, most installers do not stand the test of time.

Then again, I do find myself downloading things many times over, and your method could save some people some time, just make sure you are still using the most current version.

Comment by Scott Haneda 03.30.08 @ 12:58 am

@Morgan, no toe stepping at all, actually, thank you for taking the time to write a reply. This has always been our hope, to get some of the more advanced users in here, helping others out.

I wan’t to emphasize the “small chance” of “loosing sync” you pointed out. For file copies off of a mounted drive, in the case of Mac OS X, if the file copy dialogue is no longer on your screen, the files in fact were moved.

I am not 100% sure, but on a copy onto, the same should apply.

This is in direct contrast to Windows, where a file copy can continue, even after the file copy dialogue is gone, and long gone, as in seconds after, the files are still catching up. This has been the case since XP, and up to Vista, though both are marginally different at how they approach it.

The main reason the OS is “scolding”, at least in my guess, is the overhead to watch the removable media, and see if it is in fact in use during a file operation is high. Easier to just alert the user to a best practice case, and not have to run a background process that will watch all removable media.

in closing, remember as Morgan states, it is a “small chance”, OS X is robust enough to know that at any time, a power failure, battery failure, or stray cat can cause your computer to shut down.

Firewire is the only one I am really careful with, as you can in fact fry the firewire bus under certain also rare cases by skipping the unmount.

Comment by Scott Haneda 03.30.08 @ 1:06 am

One of your best and most helpful articles to-date, THANK YOU!
Did you explain about the additional downloads folder (new in Leopard) in the dock that is in addition to the downloads folder in the users area?
Another reason to delete duplicated files is to keep maximum hard-drive spare for what counts. I always run out of hard-drive space.

Comment by Bill Ruth 04.01.08 @ 2:41 pm

@Bill, the Dock is something we are working on, Caroline has been writing about it now for a month, so I assume it is going to be great, or, maybe, she is just lazy :-)

Any item in the Dock is not a real file, but an “alias” of sorts. So while Leopard comes with a folder that is “Downloads” it is nothing more than a “shortcut” or “Alias” to the real downloads folder in your home folder.

Same for anything in the dock, which is why you can remove anything from the Dock and it is not destructive.

Hope that helps.

Comment by Scott Haneda 04.01.08 @ 3:01 pm

I loved this post because I’m a minimalist and have but worried. What do you mean by one’s downloads? The dialog box that shows what you’ve downloaded that invites you to clear it each time? Thanks!

Comment by Mary Apodaca 04.02.08 @ 10:18 am

@Mary, by downloads, we mean the actual files that are downloaded. In Leopard 10.5, they will end up in your Downloads folder, which is in your home folder. You can access this by going to the “Go” menu in the Finder, and selecting “Home” then opening the “Downloads” folder.

The dialog box you are talking about is just a download history in Safari, that shows you what you have downloaded in the past. You can click on the small magnifying glass icon and it will also take you right to the file you downloaded, assuming it still exists and you have not deleted it.

Comment by Scott Haneda 04.02.08 @ 3:57 pm

I am an experienced win and linux user. This post helped me to understand dmg-files, which seemed to behave strangely. Thank you…

Comment by Peter Giger 04.06.08 @ 12:25 am

I’ve posted a videocast demonstrating the download process at Learning OS X. You can see the video here.

http://www.learningosx.com/2008/06/where-do-my-downloads-go/

Comment by Joe Cotellese 07.02.08 @ 7:55 pm

Scott:
The best thing about your site is that you explain in language that anyone (even I) can understand. Too often, those who know don’t know how to communicate to those who don’t know (I’ve found this problem asking questions in Apple Support Discussions), which leaves the questioner (me) feeling dumb and, at times, more confused than before. Thanks for the clarity!

Comment by Jerry 07.05.08 @ 9:49 pm

@Jerry, thanks for noticing. We actually talked about that very aspect. As you probably know there are 100’s of Mac sites out there, our edge over them, if you can call it that is we try to being it down to normal language levels. People do not care about what SATA, eSATA, USB, and all the other acronyms are, we just want to teach you what the general concepts are. Once you get the general ideas, there are plenty of places to dig deeper if you so desire.

Thanks again.

Comment by Scott Haneda 07.06.08 @ 11:22 pm

I just got my first mac (iMac OS X) and was gong to download the unarchiver, when the download window popped up it and states “open with stuffit (default)” or save file. Does this mean I already have Stuffit?

Comment by John 04.10.09 @ 10:45 am

@John, yes, this means that at some point, you installed Stuffit Expander. You could delete it, safely, I have not had it installed in years, and find Unarchiver to work better, and be easier to locate and get ahold of versus the way in which Stuffit is hidden for the free version on their website.

Comment by Scott Haneda 04.10.09 @ 3:10 pm

Hi. I’m a fairly new Mac user. I switched from windows early this month. I’m totally blind so I use Voiceover and what a brilliant thing it is. Thanks for this website. i’m learning a lot from it. Your bookmark organisation strategy is excellent – I should have done something like that a long time ago on windows. And thanks for mentioning unarchiver. I downloaded stuffit because I didn’t know there was another alternative. It’s now going to be removed.

Comment by Dannie R 11.22.09 @ 1:52 pm

@Dannie Thank you for the comment. I have always wondered how well a blind person can get along on the Macintosh. I am aware of the Accessibility options that Apple provides, and I am aware, that in my light browsing of them, comparing the features to the offerings on Windows, I find Apple’s superior.

Far from perfect, as myself, with fair enough eyesight, find some things frustrating, and I have a luxury others may not.

If there is anything in particular you get stuck on, try to find a relevant post, and leave us a comment. Please mention your disability so I can compose my reply appropriately.

Good luck with your new Mac.

Comment by Scott Haneda 11.23.09 @ 7:20 pm

Thank you so much.

I’m new to Mac and this has been very helpful.

They seem to forget to explain how to do the simple things.

Comment by Candace 01.15.10 @ 3:27 pm

Excellent article. I am a two week mac newbie & I love my iMac. I have been stuck on dos pcs since computers had two floppies and no hard drive. Vista was my last straw. I have only had two questions/problems and have been searching the net for answers. This is one topic. What to do with the dmg file after the app has been installed. From a windows perspective, you don’t get rid of anything program related. So even tho I have read to eject the dmg, I just wasn’t convinced. I do have one question tho, after installing the app, can the dmg be saved to an external drive and be reused or is it “empty”? I don’t want to have to search the net again for say tux paint & other cool apps if I accidently trash the app. I am so windows oriented, the process on the mac to uninstall apps is awesome as well as graphics, processing speed, quietness, safety, and …………

Comment by gonzobe 01.17.10 @ 3:53 pm

@gonzobe,

This is one topic. What to do with the dmg file after the app has been installed. From a windows perspective, you don’t get rid of anything program related. So even tho I have read to eject the dmg, I just wasn’t convinced.

A dmg is literally a single file, that when opened, will mount a virtual disk. You can eject (put in trash) the virtual disc that the dmg mounts, with no harm. Once you have copied the files you need from the dmg, or ran the installer, you can safely eject the white icon, and also throw away the dmg with zero ill effects.

<blockquote I do have one question tho, after installing the app, can the dmg be saved to an external drive and be reused or is it “empty”? I don’t want to have to search the net again for say tux paint & other cool apps if I accidently trash the app.

Yes, you can save the dmg to an external drive, or you could just keep in on your computer in some folder where you decide to save such things. It is not really a habit I would recommend getting into. You are saving a file that is an installer, or an application for a specific version of software. Most Mac software developers are releasing software updates on a speedy and regular basis.

You will end up saving a dmg that has an older version of software on it. If for whatever reason you ever need to reinstall it, I would just go to the website, and download it again. This assures you that you have the most current version. Most apps are relatively small, and can be downloaded in a few minutes.

Something like Adobe’s Creative Suite may be worth saving the installer, but even that is not that terrible of a download if you have a decent internet connection.

can the dmg be saved to an external drive and be reused or is it “empty”?

The dmg is not empty in any way. As a matter of fact, a dmg for a software installer is in almost all cases going to be a read only dmg, meaning, you can not alter it even if you were desirous to do so. You may be able to move an icon around within the window, but you would not be able to delete the files on it. Feel free to try, no harm can come from it, and it will help you understand the process a little better.

If you are worried about being able to locate the files, rather than saving the dmg, perhaps you should consider developing a system of bookmarks where you bookmark the download page for the software. My personal recommendation is that saving a dmg is a waste of disk space, and will only get you in potential trouble, as you will be installing old software.

Consider the following scenario:
Download and install coolapp version 1.3
Save coolapp 1.3 installer on your computer for future use

coolapp 1.3 has an internal update mechanism. You launch coolapp 1.3 and it says “hey, we have released coolapp 1.4, would you like to update?

Of course, you do update, and are now at coolapp 1.4. This goes on for a few months and you end up at coolapp 1.7, and all of a sudden, something goes wrong with coolapp 1.7.

You revert back to your saved dmg, and install coolapp 1.3. However, all the files and preferences for coolapp are in the format that coolapp 1.7 used to read. You are now asking coolapp 1.3 to understand an aspect of itself that was not yet programmed into it at the time of release.

In extreme cases, the above procedure can corrupt your files to the point that they are broken. Good developers will protect you from this. For example, if you try to open a newer iPhoto library with an older version of iPhoto, it simply will not allow it to happen, and tell you to update iPhoto first.

I do strongly suggest you look to sites like macupdate.com for your software as well, not so much to locate and download the software, it is always better to go directly to the source of the software, but more to read the reviews.

There is a lot of software out there, much of which is junk, or could potentially cause your computer to become unstable. The reviews on MacUpate can be helpful. Another tactic is just a google search for “Mac OS X _insert software name here_ sucks”. That will get you a good idea of others impressions of the software as well.

Let us know if you have any other questions.

Comment by Scott Haneda 01.17.10 @ 8:46 pm



Leave a comment:
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed. Name (required)
E-mail (required), never ever shared
URI
Your Comment:

The New MacBook
The New MacBook Air
New iPod shuffle in five brilliant colors!

Email Updates

RSS Feed

Search:

Categories

Applications (17)
Finder (17)
Hardware (4)
iTunes (1)
Little Smokies (7)
Misc (11)
OS X 10.4 (9)
OS X 10.5 (31)
OS X 10.6 (1)
Safari (11)

Archives

Contact

Friends