Sub topic 8
Keeping apps up to date
This chapter assumes you can open System Settings and Terminal, and that you know the difference between system updates and app updates from the earlier chapters. System updates change macOS itself. App updates change the software you install on top of it. They have separate update channels and separate settings.
Where apps come from decides how they update
An app updates through the same channel it was installed from. Check the source first.
| Source | Updated by | Where to look |
|---|---|---|
| Mac App Store | App Store | App Store, Updates |
| Direct download (developer website) | The app's own updater, often Sparkle-based | The app's "Check for Updates…" menu item |
| Homebrew | Homebrew | `brew outdated`, `brew upgrade` |
| Bundled with macOS (Safari, Mail) | Software Update | System Settings, General, Software Update |
Safari is the one that confuses people. It ships with macOS and updates through Software Update, not the App Store.
Find out which apps are App Store apps
Apps installed from the App Store carry a receipt, and Spotlight records that in metadata. This loop prints 1 for apps with a receipt and (null) for the rest:
for app in /Applications/*.app; do
receipt=$(mdls -raw -name kMDItemAppStoreHasReceipt "$app")
echo "$receipt $(basename "$app")"
doneApps that show (null) will not appear in the App Store's Updates tab. Update them with their own updater or with Homebrew.
Updating App Store apps
- Open the App Store and choose Updates in the sidebar.
- Wait for the list to refresh. The pane can look empty for a few seconds.
- Choose Update next to one app, or Update All.
Updates for apps you bought with a different Apple Account only appear when you are signed in to that account. If an app seems stuck on an old version, check Account in the sidebar first.
Automatic app updates
Two settings control automatic App Store updates, and they sit in different places:
- App Store, Settings, Automatic Updates turns on background updates for App Store apps.
- System Settings, General, Software Update, (i) next to Automatic updates, Install application updates from the App Store controls the same behavior from the Software Update pane on recent macOS versions.
If you turn automatic updates off in one place and an app still updates, check the other. Apps that are open are generally not replaced until you quit them, so a long-running app can stay on an old version for days.
Third-party apps and Homebrew
For apps with their own updater, open the app and choose the app name menu, then Check for Updates…. Some updaters need the app to be in /Applications. An app run from the Downloads folder or a disk image often cannot replace itself and reports a permission error.
If you use Homebrew, these commands show and apply updates:
brew update
brew outdated
brew upgradebrew update refreshes Homebrew's list of available versions. brew outdated shows what is behind. brew upgrade installs the newer versions. Casks that update themselves are skipped by default. Add --greedy to brew upgrade to include them.
Common errors
- Update button does nothing or the app stays "Waiting". The Mac may be offline, or another download is queued. Check the network, then quit and reopen the App Store.
- "This app can't be updated" or an error mentioning sign-in. Sign out and back in under Account in the App Store. Make sure the account that bought the app is the one signed in.
- An app wants a newer macOS. Developers raise the minimum macOS version. If your Mac cannot run the new macOS (see the compatibility chapter), the App Store may offer the last compatible version or none.
- An update fails on a low disk. App updates need free space for the download and the replacement copy. Check free space with
df -h /before large updates. - An old copy of the app is launched. If you have the same app in two places, such as
/Applicationsand~/Downloads, the updater changes only one. Delete the stale copy.
A practical routine
Check for app updates when you apply a system update, since new macOS releases often need matching app releases. Keep the list of non-App Store apps somewhere you will see it, because nothing prompts you about them in the App Store. Update security-sensitive apps first: browsers, password managers, and anything that opens files from the internet.
Exercise
You installed a text editor by downloading it from its developer's website. The App Store Updates tab shows nothing for it. Why, and how do you check for a new version?
Show answer
The app has no App Store receipt, so the App Store does not manage it. You can confirm this with mdls -raw -name kMDItemAppStoreHasReceipt /Applications/YourApp.app, which prints (null). Open the app and choose its name menu, then "Check for Updates…". If it was installed with Homebrew, run brew outdated and brew upgrade instead.
Exercise
Automatic App Store updates are on, but an app you keep open for weeks is still on an old version. What is the likely cause?
Show answer
The updater generally cannot replace an app while it is running. Quit the app and let the update finish, or choose Update in the App Store Updates tab, then reopen the app.