mediamtx/docs/1-kickoff/3-upgrade.md
Alessandro Ros 7bca38badb
add self-upgrader (#3501) (#5035)
this allows to upgrade MediaMTX to latest version by running

./mediamtx --upgrade
2025-10-13 13:06:47 +02:00

36 lines
902 B
Markdown

# Upgrade
If you have an existing MediaMTX installation and want to upgrade it to the latest version, the procedure depends on how MediaMTX was installed.
## Standalone binary
The standalone binary comes with a upgrade utility that can be launched with:
```sh
./mediamtx --upgrade
```
This will replace the MediaMTX executable with its latest version. Privileges to write to the executable location are required.
## Docker image
If you used the `1` tag or the `latest` tag, remove the image from cache and re-download it:
```sh
docker rm bluenviron/mediamtx:1
docker restart id-of-mediamtx-container
```
## Arch Linux package
Repeat the installation procedure.
## FreeBSD
Repeat the installation procedure.
## OpenWrt binary
If the architecture of the OpenWrt device is amd64, armv6, armv7 or arm64, you can use the standalone binary method.
Otherwise, recompile the server from source.