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.
Starting with Zammad 7, packages are being built using a new toolchain and hosted under another URL. The packages are being built via old toolchain as well (except for Debian 13) for some time, but we encourage you to switch to the new repositories in a timely manner. This means you need to add a new repository key and change your repository configuration.
Warning
Always make sure to have a backup of your data before performing an upgrade.
The following operating systems are supported:
Distribution |
Versions |
|---|---|
CentOS / RHEL |
9 |
Debian |
11, 12 & 13 |
OpenSUSE / SLES |
Leap 15.x / 15 |
Ubuntu |
22.04 & 24.04 |
Stop Zammad¶
$ sudo systemctl stop zammad
Host Upgrade Steps¶
Disable Updates for Zammad¶
$ sudo apt-mark hold zammad
$ sudo apt-mark hold zammad
$ sudo zypper addlock zammad
$ sudo dnf upgrade --exclude zammad
Perform 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 20.04
$ sudo rm /etc/apt/sources.list.d/zammad.sources
- Ubuntu 22.04
$ sudo rm /etc/apt/sources.list.d/zammad.list
$ sudo rm /etc/apt/sources.list.d/zammad.list
$ sudo rm /etc/zypp/repos.d/zammad.repo
$ sudo rm /etc/yum.repos.d/zammad.repo
Remove 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.gpg
$ sudo rm /etc/apt/trusted.gpg.d/pkgr-zammad.gpg
List the keys of your system:
$ rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
Delete the key(s) related to Zammad (and only those!), replace
<key-name> with the actual key ID:
$ sudo rpm -e <key-name>
List the keys of your system:
$ rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
Delete the key(s) related to Zammad (and only those!), replace
<key-name> with the actual key ID:
$ sudo rpm -e <key-name>
Add New Repository¶
- 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.gpg
- Add 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.list
- Add 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.list
- 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.gpg
- Add repository (Debian 11)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/11.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository (Debian 12)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/12.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository (Debian 13)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/13.list" \ -o /etc/apt/sources.list.d/zammad.list
$ sudo curl -o /etc/zypp/repos.d/zammad.repo \
"https://go.packager.io/srv/zammad/zammad/stable/installer/sles/15.repo"
- Add repository key
$ sudo rpm --import https://go.packager.io/srv/rpm/zammad/zammad/gpg-key.asc
- Add repository
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/el/9.repo" \ -o /etc/yum.repos.d/zammad.repo
Update Zammad¶
Hint
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 (in case you disabled it) and update Zammad to the latest version available for your operating system.
- Update package index:
$ sudo apt update
- Re-enable updates for Zammad:
$ sudo apt-mark unhold zammad
- Update Zammad:
$ sudo apt upgrade zammad
- Update package index:
$ sudo apt update
- Re-enable updates for Zammad:
$ sudo apt-mark unhold zammad
- Update Zammad:
$ sudo apt upgrade zammad
- Update package index:
$ sudo zypper refresh
- Re-enable updates for Zammad:
$ sudo zypper removelock zammad
- Update Zammad:
$ sudo zypper update zammad
$ sudo dnf upgrade zammad
Start Zammad¶
$ sudo systemctl start zammad