In general, new programs arrive on your Mac via one of two avenues: as an Internet download (whether from the App Store or not), or on a CD or DVD.
Programs you download from the Web (not the App Store) generally arrive in a specially encoded, compressed form. And unless you’ve changed the settings, they arrive in the Downloads folder on your Dock.
The downloaded file’s name usually has one of these file name extensions:
Fortunately, you generally don’t have to worry about any of this; most Web browsers, including Safari, automatically unzip and unstuff downloads of all types.
Once you’ve downloaded a program, it often takes the form of a disk image file, whose name ends with the letters .dmg (second from the top in Figure 4-2).
Disk images are extremely common in OS X. All you have to do is double-click the .dmg icon. After a moment, it magically turns into a disk icon on your desktop, which you can work with just as though it were a real disk (third from the top in Figure 4-2). For example:
Double-click it to open it. The software you downloaded is inside.
Remove it from your desktop by dragging it to the Trash (whose icon turns into a big silver key as you drag), highlighting it and pressing ⌘-E (the shortcut for File→Eject), clicking its button in the Sidebar, or right-clicking it and then choosing Eject from the shortcut menu.
You’ve still got the original .dmg file you downloaded, so you’re not really saying goodbye to the disk image forever.
When you’ve finished unzipping or unstuffing a downloaded file, you may have several icons on your desktop or in the Downloads folder. Some are useful; some you’re free to trash:
The original compressed file. It’s safe to throw away the .sit, .tar, .gz, or .tgz file you originally downloaded (after it’s decompressed, of course).
The .dmg file. Once you’ve turned it into an actual disk-drive icon, installed the software from it, and “ejected” the disk-drive icon, you can delete the .dmg file. Keep it only if you think you might need to reinstall the software someday.
Note
If you try to trash the .dmg file before removing the disk-drive icon from the screen, you’ll get a “file in use” error message when you try to empty the Trash.
Figure 4-2. Downloading a new program may strew your desktop or Downloads folder with icons. A: These are the downloaded files. Delete them after they’re decompressed. B: The compressed file turns into this .dmg file. Double-click it to “mount” the disk image (if it didn’t appear automatically). C: And now, the disk image itself. Double-click it to open the software installer window. (Dismiss the warning that the software came from the Internet.) “Eject” it after the installation is complete. D: Here’s the actual software installer window. After the installation, you can delete all this stuff (except maybe the .dmg file, if you think you might want to install the software again later).
The disk image itself. This final icon, the one that contains the actual software or its installer (third from the top in Figure 4-2), doesn’t exist as a file on your hard drive. It’s a phantom drive, held in memory, that will go away by itself when you log out. So after installing its software, feel free to drag it to the Trash (or highlight it and press ⌘-E to “eject” it).
Once you’ve got a disk icon on your desktop—either a pseudo-disk from a disk image or a CD or DVD you’ve inserted—you’re ready to install the software. You can install many OS X programs just by dragging their icons or folders to your hard drive (usually the Applications folder). Others offer a traditional installer program that requires you to double-click, read and accept a license agreement, and so on.
If you got a program from the App Store, it’s easy to delete from the Launchpad (described below).
If you got it from some other source, well, there’s generally no Uninstall program. To uninstall a program, you just drag it (or its folder) to the Trash.
Some programs leave harmless scraps of themselves behind; to check for them, look for preference files or folders bearing the dearly departed program’s name in your Library folders (especially in Application Support) and in your Home→Library→Preferences folder.
Get Switching to the Mac: The Missing Manual, Mountain Lion Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.