Clear Mac App Store Temp Cache to Fix Some Download Issues

Oct 8, 2016 - 4 Comments

Accessing Mac App Store temporary cache

Rarely, the Mac App Store may report erroneous app download statuses or even offer a malformed file leading to an app that doesn’t launch or is partially downloaded. These situations are almost always the result of an interrupted or corrupted download, but can occur in some other scenarios as well.

Sometimes simply deleting the app in question can resolve any surrounding difficultly, but on some occasions that isn’t possible or isn’t effective. These type of unusual errors can typically be resolved by manually clearing out the Mac App Store cache, and then re-downloading the app, or re-visiting the Mac App Store. This tutorial will walk through completing that process.

Accessing the Mac App Store Temporary Download Caches

Be sure to backup your Mac before beginning this process, it’s unlikely something will go wrong if you follow the instructions but because you are editing a system level cache directory it’s always good practice to backup and be sure your data is safe. Don’t skip backing up.

  1. Quit out of the Mac App Store
  2. Open the Terminal, found in /Applications/Utilities/ and type the following command exactly:
  3. open $TMPDIR../C/com.apple.appstore/
    Open the Mac App Store temp cache directory

  4. Hit Return and the com.apple.appstore folder will open in the Finder of Mac OS
  5. Move the contents of this folder onto the desktop of the Mac (or if you are confident, move the contained temporary data into the Trash)
  6. The Mac App Store cache temp data folder

  7. Importantly, do not delete or adjust any other files outside of this directory, when finished close the com.apple.applestore folder
  8. Relaunch Mac App Store

Now you should be able to download or re-download the apps or Mac OS installer files again, and they should work properly as intended.

This process can help if you’re unable to download something from the Mac App Store, if it’s showing up erroneously as downloaded when it’s not, or if there are constant verification errors or other problems with the downloaded app or installer file. For example, you may need to do this if you notice that the Mac App Store is persistently showing a Mac OS installer as “Downloaded” despite not having completed the download as discussed in this Sierra troubleshooting detail. If you delete the temp cache data, it will allow you to re-download that Mac OS installer again in such a situation.

This troubleshooting trick will not resolve user level cache issues with the App Store, which are typically superficial behavior like the App Store not loading pages or behaving in an inordinately slow manner.

For those wondering about alternatives that do not involve the command line, you can also approach this temp cache directory through the Mac App Store “Debug” menu, but the latest versions of Mac OS and Mac App Store do not seem to support the current defaults write command to reveal the option. If you happen to know an updated defaults string that works with modern Mac OS releases, be sure to leave a comment.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Paul Horowitz in Mac OS X, Tips & Tricks, Troubleshooting

4 Comments

» Comments RSS Feed

  1. Meisenman says:

    Step 3 folder name should read “com.apple.appstore”, as in the Terminal and Finder screen shots.

  2. Amigalander says:

    What’s the difference between the 0, C, and T folders in the parent of $TMPDIR ?

  3. KOENIG Yvan says:

    No need for Terminal.
    This simple script does the job.
    set p2t to path to temporary items from local domain
    tell application “System Events”
    set p2appStore to (path of container of container of p2t) & “C:com.apple.appstore:”
    end tell
    tell application “Finder” to open p2appStore

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates