Deploy the desktop app on Linux
Install the desktop app from the package for your distribution. How the app is updated depends on the package.
- Ubuntu/Debian
- CentOS/RHEL
- Flatpak
- AppImage
- Tarball
Both a .deb package and an official APT repository are available for Debian and for Ubuntu LTS releases 22.04 or later. A standalone .deb package doesn't update itself, so install new versions manually. If you install from the APT repository, new versions arrive with your normal apt upgrade. They install automatically only if you've configured unattended upgrades to include the Mattermost repository.
- At the command line, set up the Mattermost repository on your system:
curl -fsS -o- https://deb.packages.mattermost.com/setup-repo.sh | sudo bash
- Install the Mattermost desktop app:
sudo apt install mattermost-desktop
- Update the Mattermost desktop app:
sudo apt upgrade mattermost-desktop
Beta .rpm packages are available for CentOS and RHEL 7 and 8. Automatic app updates aren't supported. You must update your app manually.
Install the Mattermost desktop app
- Download the latest version of the Mattermost desktop app for 64-bit systems: mattermost-desktop-6.4.0-linux-x86_64.rpm
- At the command line, execute the following command:
sudo rpm -i mattermost-desktop-6.4.0-linux-x86_64.rpm
- Run Mattermost as a desktop app.
To manually update the desktop app, run the following command:
sudo rpm -U mattermost-desktop-6.4.0-linux-x86_64.rpm
From Mattermost Desktop v6.1, Flatpak packages are available for Linux systems. Flatpak is a universal Linux package format that provides a sandboxed environment and includes runtime dependencies. The Flatpak version is currently in beta.
Available architectures
Flatpak packages are available for:
- x86_64 (Intel/AMD 64-bit processors)
- aarch64 (ARM 64-bit processors)
Install Flatpak
- Ensure Flatpak is installed on your system. If not, see the Flatpak setup guide for your distribution.
- Download the latest Mattermost Desktop Flatpak package for your architecture from the Desktop App's Github releases page:
- For x86_64:
mattermost-desktop-{VERSION}-linux-x86_64.flatpak - For aarch64:
mattermost-desktop-{VERSION}-linux-aarch64.flatpak
- For x86_64:
- Install the Flatpak package:
flatpak install mattermost-desktop-{VERSION}-linux-{ARCH}.flatpak
Replace {VERSION} with the version number (for example, 6.4.0) and {ARCH} with your architecture (x86_64 or aarch64).
- Run Mattermost as a desktop app:
flatpak run com.Mattermost.Desktop
An AppImage runs on most Linux distributions without being installed. To update it, download the new AppImage and replace the old one.
-
Download the AppImage for your architecture from the GitHub releases page, either
linux-x86_64orlinux-arm64. -
Make it executable, replacing
<version>and<arch>with the version and architecture in the downloaded filename:chmod +x mattermost-desktop-<version>-linux-<arch>.AppImage -
Run the AppImage. See the AppImage documentation for desktop integration options.
A compressed tarball is available for most Linux distributions from the GitHub releases page. To update it, download and extract the new version into the same directory. If you extract it to a different directory, run create_desktop_file.sh again from the new directory and move the .desktop file it creates to ~/.local/share/applications/, so the launcher doesn't point to the old version.
Install the Desktop App's compressed tarball
-
Download the latest version of the Mattermost desktop app for 64-bit systems: mattermost-desktop-6.4.0-linux-x64.tar.gz
-
Extract the archive to a convenient location, then go to the extracted directory and give
chrome-sandboxthe required ownership and permissions:sudo chown root:root chrome-sandbox && sudo chmod 4755 chrome-sandbox -
Run the app executable inside the extracted directory.
-
To add Mattermost to your desktop environment's app launcher, and to let sign-in links open the app, run
create_desktop_file.shfrom the extracted directory, then move the.desktopfile it creates to your applications folder:./create_desktop_file.shmv *.desktop ~/.local/share/applications/xdg-mime default Mattermost.desktop x-scheme-handler/mattermostThe last command makes this installation the default handler for sign-in links, even if another application was previously the default. To check it, run
xdg-mime query default x-scheme-handler/mattermost.
Community packages
The following packages are maintained by the community and aren't supported by Mattermost:
-
Snap: Available from Snapcraft on distributions with snapd installed:
sudo snap install mattermost-desktop -
Flathub: Available from Flathub.
-
Arch Linux: Available as
mattermost-desktopin the extra repository, and asmattermost-desktop-binin the AUR.
Pre-configure the app for your users
To give every user the same permanent servers on Linux, you can distribute a custom desktop app. As an advanced option, you can also seed config.json with each user's initial servers and settings.