Host upgrade and repository migration
TIP
Are you tired of complex setup, configuration, backup and update tasks? Let us handle this stuff for you! 🚀
The easiest and often most cost-effective way to operate Zammad is our cloud service. Give it a try with a free trial instance!
This page covers the required steps for a host upgrade and to switch to Zammad's new package repositories. If you just want to update Zammad itself, please refer to Updating Zammad. To just switch to the new repositories without a host upgrade, skip the host upgrade steps.
Zammad packages are being built with a new toolchain and are hosted under another URL. The old toolchain is no longer in use, so the packages in the old repositories no longer receive updates. This means you need to add a new repository key and change your repository configuration.
The repository channel in the URL selects the release line: stable contains the current stable release, while release lines that are out of support have a channel of their own, for example stable-6.5.
WARNING
Always make sure to have a backup of your data before performing an upgrade.
WARNING
Zammad 6.5.5 is an emergency release that fixes a security issue. Zammad 6.5 is out of support and its packages are only available in the stable-6.5 channel. See Update an out-of-support release below for the steps.
The following operating systems are supported:
| Distribution | Version |
|---|---|
| CentOS/RHEL | 9, 10 |
| Debian | 12 & 13 |
| OpenSUSE Leap / SLES | 15 & 16 |
| Ubuntu | 22.04, 24.04 & 26.04 |
Stop Zammad
sudo systemctl stop zammadHost upgrade steps
Disable updates for Zammad
sudo apt-mark hold zammadPerform host upgrade
Perform the host upgrade according to the documentation of your operating system. Because this is an advanced task, we don't provide detailed steps here. After upgrading your operating system, proceed with the next steps.
Reboot host
In case you did not reboot your system after the upgrade, make sure to reboot your system now. Afterwards, check if everything is running as expected. In case Zammad starts automatically, stop it again before proceeding with the next steps.
Adjust package repository
Remove old repository
Remove the old repository configuration file or disable/delete the old repository in your package manager.
Ubuntu 22.04:
sudo rm /etc/apt/sources.list.d/zammad.sourcesUbuntu 24.04:
sudo rm /etc/apt/sources.list.d/zammad.listRemove old repository key
Remove the old repository key from your system. Depending on your operating system and version, the location or method differs.
sudo rm /etc/apt/keyrings/pkgr-zammad.gpgAdd new repository
If the repository key is different for the old and new version your distribution or your distribution expects it in a different location, add the new one. Otherwise, you can add the new repository configuration directly.
Add repository key:
sudo curl -fsSL "https://go.packager.io/srv/deb/zammad/zammad/gpg-key.gpg" \
-o /usr/share/keyrings/zammad.gpg && sudo chmod 644 /usr/share/keyrings/zammad.gpgAdd repository (Ubuntu 22.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/ubuntu/22.04.list" \
-o /etc/apt/sources.list.d/zammad.listAdd repository (Ubuntu 24.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/ubuntu/24.04.list" \
-o /etc/apt/sources.list.d/zammad.listAdd repository (Ubuntu 26.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/ubuntu/26.04.list" \
-o /etc/apt/sources.list.d/zammad.listInstall Zammad
sudo apt updatesudo apt install zammadUpdate Zammad
TIP
If there is a new Zammad version available and you want to update to it, check the release notes for any required additional steps.
Re-enable updates for Zammad and update Zammad to the latest version available for your operating system.
Update package index:
sudo apt updateRe-enable updates for Zammad:
sudo apt-mark unhold zammadUpdate Zammad:
sudo apt upgrade zammadStart Zammad
sudo systemctl start zammadUpdate an out-of-support release
Zammad 6.5.5 is an emergency release that fixes a security issue. Zammad 6.5 has been out of support for some time and no longer receives security updates, so updating to the current stable release is the recommended action. Follow the steps below only if you cannot update to a supported release right now.
Zammad builds 6.5.5 packages for Ubuntu 20.04, 22.04 and 24.04, Debian 11 and 12, CentOS/RHEL 8 and 9, and OpenSUSE Leap/SLES 15.
Add the 6.5 repository
Remove the old repository and its key first, as described in Adjust package repository above. Otherwise your package manager keeps reading the old repository, which offers packages of a newer release line.
Add the new repository with the stable-6.5 channel:
Add repository key:
sudo curl -fsSL "https://go.packager.io/srv/deb/zammad/zammad/gpg-key.gpg" \
-o /usr/share/keyrings/zammad.gpg && sudo chmod 644 /usr/share/keyrings/zammad.gpgAdd repository (Ubuntu 20.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable-6.5/installer/ubuntu/20.04.list" \
-o /etc/apt/sources.list.d/zammad.listAdd repository (Ubuntu 22.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable-6.5/installer/ubuntu/22.04.list" \
-o /etc/apt/sources.list.d/zammad.listAdd repository (Ubuntu 24.04):
sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable-6.5/installer/ubuntu/24.04.list" \
-o /etc/apt/sources.list.d/zammad.listUpdate Zammad to 6.5.5
Stop Zammad:
sudo systemctl stop zammadUpdate package index:
sudo apt updateRe-enable updates for Zammad:
sudo apt-mark unhold zammadUpdate Zammad:
sudo apt upgrade zammadStart Zammad:
sudo systemctl start zammad