Zero-dependency Bash automation to cleanly install, update, or uninstall Antigravity IDE from official .tar.gz archives on Ubuntu, Debian, and other Linux distributions.
Instead of manually extracting archives, fixing chrome-sandbox permissions, recreating symlinks, and configuring .desktop launchers every time a new version is released, run a single command.
- Auto-Detection: Automatically locates the newest
*Antigravity*.tar.gzarchive in your~/Downloadsdirectory (respecting XDG user directories andsudoinvocations). - Safe Atomic Updates: Verifies archive integrity and extracts to a temporary staging folder first—your existing installation is never broken if an archive is corrupted or interrupted.
- Ubuntu 23.10 / 24.04+ AppArmor & Sandbox Ready: Automatically sets
root:rootownership and4755SUID permissions onchrome-sandboxso Electron launches without sandbox errors. - Conflict Resolution: Detects and removes conflicting
antigravitySnap installations that shadow/usr/local/binin$PATH. - CLI Integration: Links both
antigravityandantigravity-ideto/usr/local/binvia the official CLI wrapper soantigravity .works cleanly from any terminal. - Custom Antigravity × Tux Desktop Icon: Automatically installs and configures the custom Antigravity × Linux Tux icon (
~/.local/share/icons/antigravity-tux.pngand/usr/share/pixmaps/antigravity-ide.png) and registers/usr/share/applications/antigravity-ide.desktop(with a "New Empty Window" right-click action). - Version Tracking: Displays the exact version upgrade path (e.g.,
v2.5.0 -> v2.6.0).
git clone https://github.com/David-mwas/antigravity-ide-update-script.git
cd antigravity-ide-update-script
chmod +x update-antigravity.sh
./update-antigravity.sh --install-selfThis installs the update-antigravity command into ~/.local/bin/update-antigravity.
- Download the latest Antigravity IDE
.tar.gzarchive into your~/Downloadsfolder. - Run:
update-antigravityupdate-antigravity ~/Downloads/"Antigravity IDE (1).tar.gz"To save disk space by automatically deleting the .tar.gz file once the update succeeds:
update-antigravity --clean-archiveTo cleanly remove /opt/antigravity, CLI symlinks, and the desktop entry (while preserving your user settings and extensions in ~/.config and ~/.antigravity-ide):
update-antigravity --uninstallUsage:
update-antigravity [OPTIONS] [/path/to/Antigravity.tar.gz]
Options:
-f, --file <path> Path to a specific Antigravity .tar.gz archive
-d, --dir <path> Custom installation directory (default: /opt/antigravity)
-c, --clean-archive Delete the downloaded .tar.gz archive after successful install
-u, --uninstall Completely remove Antigravity IDE, symlinks, and desktop launcher
-i, --install-self Install this script globally to ~/.local/bin/update-antigravity
-h, --help Show this help message and exit
Tested and compatible with:
- Ubuntu (20.04 LTS, 22.04 LTS, 24.04 LTS, and newer)
- Linux Mint / Pop!_OS / Debian
- Fedora / Arch / openSUSE (any systemd/XDG-compliant Linux desktop)
MIT License