# Updating to new versions of Mayhap

When a new version of Mayhap comes out, a line in the top bar says so. A copy installed from mayhap.app downloads it in the background and installs it when you restart; a copy a package manager installed is updated by that package manager.

## How you hear about a new version

Once a day, in the background, Mayhap asks mayhap.app whether a newer version is out. When one is, the top bar says so after the document's name, for example *Mayhap 1.1.0 is out*, and a click on it opens the release notes. There's no dialog, and when Mayhap is offline it says nothing.

![The top bar saying Mayhap 1.1.0 is out after the document's name](https://mayhap.app/build/assets/new-release-DpNjyI4v.webp)

To see which version you have, choose *Help › About Mayhap* in the file menu. *Help › What's new* opens the notes of every release.

## Installing a new version

Mayhap installed from the macOS disk image, the Windows setup, the AppImage or the one-command Linux install updates itself. With a key that opens the new version, Mayhap downloads it in the background and checks it. Once it's ready, the line in the top bar says *Mayhap 1.1.0 is out — restart to update*.

Click the line when it suits you. Mayhap quits as *Quit* does, asking about unsaved changes first, puts the new version in place and starts it, with your documents open again. Nothing is replaced until you click, and a download that fails changes nothing.

Without a key, nothing is downloaded: the line only says the new version is out.

## Updating with a package manager

A copy installed by a package manager is that package manager's to update, so Mayhap leaves it alone. Its top bar says *Mayhap 1.1.0 is out — update it with your package manager*, and a click opens the release notes.

Ubuntu, Debian and Fedora
: The *.deb* and *.rpm* add Mayhap's repository, so the new version comes with your system's other updates.

openSUSE
: Install the newer *.rpm* the same way you installed the first.

Arch Linux
: Your AUR helper updates *mayhap-bin* with your other packages.

Homebrew
: Homebrew updates Mayhap with your other casks.

For example, with yay on Arch Linux:

```
yay -Syu
```

And with Homebrew:

```
brew upgrade
```

## Versions your key opens

Your key opens every version released up to its *Updates until* date, and the bug-fix releases of those versions for five years. When a newer version needs a renewal, the line says *Mayhap 1.1.0 is out — renew to get it*, and a click opens the licence card. If a bug-fix release your key opens is out at the same time, Mayhap announces that one first.

You can learn more about renewing in [Your licence key](https://mayhap.app/guide/licence-key#renew).

## Turning the checks off

By default, Mayhap checks for new versions once a day. If you would rather it didn't, turn off *Check for new versions* in *Settings › Writing*. The line in the top bar goes with it, and nothing is downloaded.
