A Bash script that downloads, GPG-verifies, and installs the latest Nextcloud Desktop AppImage on Linux.
- Downloads from the official Nextcloud server or GitHub Releases
- Verifies the GPG signature before installing
- Gracefully quits a running Nextcloud instance before replacing it
- Integrates with AppImage managers (gearlever, appimagelauncher)
- Creates a
.desktopfile and optional autostart entry - Prompts to launch Nextcloud when done
| Tool | Purpose |
|---|---|
curl |
Fetch release metadata and download AppImage |
jq |
Parse GitHub API JSON (only needed with --github) |
gpg |
Verify signature |
pgrep |
Detect running Nextcloud process |
gtk-launch |
Launch Nextcloud via .desktop file |
Install on Debian/Ubuntu:
sudo apt install curl jq gpg procpsUsage: nextcloud_update.sh [OPTIONS]
Options:
--github Download from GitHub Releases instead of the official Nextcloud server
--version <ver> Download a specific version instead of the latest (e.g. 3.14.2 or v3.14.2)
--manager <name> Integrate with an AppImage manager (supported: gearlever, appimagelauncher)
--manual-install Move AppImage to ~/Applications without prompting
--install-dir <path> Override the install directory (default: ~/Applications)
--autostart Symlink the .desktop file into ~/.config/autostart
--dry-run Print what would be done without making any changes
-h, --help Show this help message
Download from the official server and prompt for install method:
bash nextcloud_update.shDownload from GitHub and integrate with gearlever, with autostart:
bash nextcloud_update.sh --github --manager gearlever --autostartMove to ~/Applications and set up autostart non-interactively:
bash nextcloud_update.sh --manual-install --autostartInstall to a custom directory:
bash nextcloud_update.sh --manual-install --install-dir /opt/appimagesDownload a specific version:
bash nextcloud_update.sh --version 3.14.2 --manual-installPreview what would happen without making any changes:
bash nextcloud_update.sh --dry-run --github --manager gearlever --autostartThe script automatically imports and uses the official Nextcloud GPG key (A724937A) to verify the AppImage signature before installation. It tries hkps://pgp.mit.edu first, falling back to hkps://keyserver.ubuntu.com if unreachable.
MIT — see LICENSE.