Sub topic 8
Keeping apps up to date
This chapter covers how apps on a Mac get updated, which is separate from how macOS itself gets updated. It assumes you can use System Settings and Terminal, have an administrator account, and know the difference between a macOS point update and a major upgrade from earlier chapters. By the end you should be able to tell which update channel an app uses, configure automatic app updates, and update apps from the command line.
Why apps need their own update path
Software Update in System Settings handles macOS and a few Apple components, such as Safari and Xcode Command Line Tools. Everything else arrives through one of several independent channels. Each channel has its own schedule, settings, and failure modes. An app can be out of date even when System Settings says "Your Mac is up to date."
The common channels are:
- Mac App Store. Apps installed from the App Store update through the App Store app.
- Built-in updaters. Many apps downloaded from a developer's website check for updates themselves. Examples are apps using the open-source Sparkle framework, Microsoft AutoUpdate for Office, and Google's updater for Chrome.
- Package managers. Homebrew manages command-line tools and, through casks, many graphical apps.
- Manual reinstall. Some apps have no updater. You download a new copy and replace the old one.
Updating App Store apps
Open the App Store app and choose Updates in the sidebar. The list shows each available update with release notes. You can click Update next to one app or Update All. Updates download in the background, and an app that is running must quit before its update can finish. The App Store usually prompts you to quit it.
Three behaviors cause most confusion:
- Account binding. An app is tied to the Apple Account that acquired it. If you bought an app with a different account, the App Store may not offer its updates until you sign in with that account.
- Minimum macOS version. A developer can raise an app's minimum macOS version. On an older macOS, the App Store then stops offering new versions. It may offer the last compatible version instead, or nothing at all. This is one reason to check compatibility before skipping a macOS upgrade.
- Refresh timing. The Updates list refreshes when you open the App Store, and the app can show stale information. If you know an update exists but don't see it, quit and reopen the App Store. You can also use View > Refresh or press Command-R.
Automatic App Store updates
You can have the Mac install app updates for you. In System Settings, go to General > Software Update, click the (i) button next to Automatic Updates, and turn on Install application updates from the App Store. This is the same group of switches you saw in the automatic updates chapter. It controls only App Store apps.
The App Store app has its own related setting. Open the App Store, choose App Store > Settings, and look for the automatic updates option. Both controls act on the same behavior in current macOS versions. If the two ever seem to disagree, treat System Settings as the authoritative place and check it first.
The Mac installs these updates when the app isn't running. An app you leave open for weeks may therefore stay on an old version. If you want predictable results, quit apps you rarely use.
Updating apps that update themselves
Apps from outside the App Store cannot use the App Store's updater. Many include their own, typically under a menu item like App name > Check for Updates.... These updaters usually:
- Download a new version from the developer's server.
- Verify its signature.
- Replace the app in place, often after asking you to quit and relaunch.
Most such apps also check on a schedule. The first time you launch one, it may ask whether to check automatically. If you said no, you can usually turn this on in the app's own settings. System Settings has no central switch for these apps.
Two practical points apply:
- Permissions. An app in
/Applicationsthat you installed as an administrator may ask for your password to replace itself. If you installed it as a standard user into your own~/Applicationsfolder, updates need no password. - Trust. A built-in updater downloads and runs code on your behalf. Update only from the app's own menu or the developer's official site. If an unexpected window asks you to download an "update" for an app, close it and check from the app's own menu.
Finding out where an app came from
Before you decide how to update an app, identify its channel. Apps from the App Store contain a receipt folder inside the bundle. Apps using Sparkle have a feed address in their Info.plist under the key SUFeedURL. The following script uses both facts to list your apps, their update channel, and their versions.
for app in /Applications/*.app; do
name=$(basename "$app" .app)
info="$app/Contents/Info"
if [ -d "$app/Contents/_MASReceipt" ]; then
source="App Store"
elif defaults read "$info" SUFeedURL >/dev/null 2>&1; then
source="Sparkle"
else
source="other"
fi
version=$(defaults read "$info" CFBundleShortVersionString 2>/dev/null || echo "?")
printf '%-30s %-10s %s\n' "$name" "$source" "$version"
doneThe other group includes apps with their own custom updater, Homebrew casks, and apps with no updater. The script is a heuristic. An app can use Sparkle without being detected if its developer renamed the key or embedded the feed elsewhere. Treat other as "check manually."
You can read one app's version directly with:
defaults read /Applications/Safari.app/Contents/Info CFBundleShortVersionStringReplace the path with any installed app. If the app is missing, defaults prints an error. This is also a quick way to compare against the version number the developer lists on their website.
Updating with Homebrew
If you use Homebrew, it keeps its own list of installed software and updates it on request. Homebrew has two kinds of packages. A formula is a command-line tool built or downloaded by Homebrew. A cask is a graphical app that Homebrew downloads and installs into /Applications.
A typical update session has three steps:
brew update
brew outdated
brew upgradebrew updaterefreshes Homebrew's own package definitions. It doesn't upgrade any software.brew outdatedlists installed formulae and casks that have a newer version.brew upgradeupgrades them. Add--caskto limit it to graphical apps, or--formulato limit it to command-line tools.
There is one edge case to know. Many casks are marked as updating themselves, because the app has its own updater. By default, Homebrew skips these in brew outdated and brew upgrade. To include them, add --greedy:
brew outdated --cask --greedy
brew upgrade --cask --greedyMixing channels can cause trouble. If you installed an app with Homebrew and then let its built-in updater replace it, Homebrew's record of the version is wrong, and brew upgrade may try to reinstall an older or equal version. Pick one channel per app and stay with it.
Updating App Store apps from Terminal
Apple provides no official command for App Store updates. The open-source mas tool, available through Homebrew, fills the gap. It uses the account you are signed in with in the App Store app.
brew install mas
mas outdated
mas upgrademas outdated lists App Store apps with updates, and mas upgrade installs them. Because mas relies on private details of the App Store, a macOS release can break it until the tool is updated. Treat it as a convenience for your own Mac, not as a dependable part of an automated process.
Choosing a strategy
Each approach trades convenience against control.
| Approach | Strength | Weakness |
|---|---|---|
| Automatic App Store updates | No effort; covers all App Store apps | An update can change an app unexpectedly; no rollback |
| Each app's built-in updater | Gets the developer's release as soon as it ships | Settings are spread across many apps |
| Homebrew | One command for many tools; scriptable | Skips self-updating casks unless you use `--greedy` |
| Manual download | Full control over the version | Easy to forget; no reminders |
A reasonable setup for an individual Mac is to turn on automatic App Store updates, leave built-in updaters on their default schedule, and run brew update && brew upgrade once a week if you use Homebrew. Pause automatic updates for an app you depend on for deadline work, and update it afterward.
Common problems
- The App Store shows no updates, but an app is old. Check the app's source. It may not come from the App Store. Also check whether the app's newer versions need a newer macOS than you have.
- An update is stuck at "Waiting" or "Updating." Quit the app, then quit and reopen the App Store. If the download still doesn't move, check your network and free disk space with
df -h /. - The App Store asks for the wrong Apple Account. The app was acquired with a different account. Sign in with that account, or buy or download the app again under your current one.
- A built-in updater reports an error. Download the latest version from the developer's site and replace the app. Keep your data folders; they live outside the app bundle.
- An app misbehaves after an update. Check the developer's release notes and support page first. If the app came from Homebrew, you can reinstall a specific version only if the formula or cask offers one.
Summary of the working model
macOS and its Apple-supplied components update through Software Update. Other apps update through whichever channel installed them, and each channel has its own settings and its own way of failing. When an app is out of date, work out the channel first. Then use that channel's tools to check for, install, and verify the update.
Exercise
You installed a graphical app with Homebrew. It also has its own built-in updater, and brew outdated shows nothing, but the developer's site lists a newer version. What is the likely cause, and what command checks for it?
Show answer
The app's cask is marked as self-updating, so Homebrew skips it by default. Run brew outdated --cask --greedy to include such casks, and brew upgrade --cask --greedy to upgrade them. Afterward, stick with one update channel for that app so Homebrew's recorded version stays accurate.
Exercise
Software Update says your Mac is up to date, and automatic App Store updates are on, yet one App Store app stays on an old version. Name three possible reasons.
Show answer
The app may be running and so cannot be replaced; the app may have been acquired with a different Apple Account than the one signed in; or its newer versions may require a newer macOS than the one installed. A stale App Store list is also possible, which reopening or refreshing the App Store fixes.