Small installer for Google Antigravity on Linux x64. It reads the current official download page, resolves the latest Linux x64 tarballs, and installs one or both products:
app: Antigravity 2.0 desktop appide: Antigravity IDE
This script was created because the legacy APT package named antigravity can lag behind the new Antigravity 2.0 product split and can conflict with the new antigravity command.
See also INSTALLATION.md for the redacted OS, runtime, version, and install state captured during setup, INSTALL_NOTES.md for the installation narrative and troubleshooting history, and KNOWN_ISSUES.md for current Linux-specific issues and workarounds.
On this machine, the preferred installation is system-wide:
- Antigravity app:
/opt/antigravity/Antigravity-x64 - Antigravity IDE:
/opt/antigravity-ide/Antigravity-IDE - Command wrappers:
/usr/local/bin/antigravity,/usr/local/bin/antigravity-ide - Desktop entries:
/usr/share/applications/antigravity.desktop,/usr/share/applications/antigravity-ide.desktop - Icons:
/usr/share/icons/hicolor/512x512/apps/
The installer also sets Electron chrome-sandbox to root-owned 4755 during system install. Command wrappers launch with --ozone-platform=x11 to avoid GNOME Wayland/Vulkan startup issues observed on Ubuntu 24.04. The IDE wrapper calls the official bin/antigravity-ide CLI so antigravity-ide . returns control to the terminal after handing the request to the IDE.
- Ubuntu or another glibc-based Linux distribution
- x86_64 CPU
- Python 3.10+
- Network access to
https://antigravity.google/download sudofor system-wide install
Install both the IDE and the Antigravity 2.0 app system-wide:
cd ~/antigravity-installer
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py ide appInstall only the IDE:
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py ideInstall only the Antigravity 2.0 app:
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py appUser-local install is also supported when sudo is unavailable:
cd ~/antigravity-installer
./install.py ide appUser-local install writes to:
~/.local/opt/antigravity*~/.local/bin/antigravity*~/.local/share/applications/~/.local/share/icons/
Make sure ~/.local/bin appears before /usr/bin in PATH if a legacy APT package is still installed.
Run the same install command again. The installer downloads the current official tarball and replaces the install root atomically enough for normal desktop use:
cd ~/antigravity-installer
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py ide appTo update only the IDE:
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py ideIf the releases page shows a newer IDE version but the download page still points to an older Linux tarball, override the IDE tarball URL explicitly:
sudo env ANTIGRAVITY_INSTALL_MODE=system ANTIGRAVITY_IDE_URL='https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.4-6381998290370560/linux-x64/Antigravity%20IDE.tar.gz' ./install.py ideTo update only the Antigravity 2.0 app:
sudo env ANTIGRAVITY_INSTALL_MODE=system ./install.py appWhen replacing an existing install, the previous install root is moved to a .previous sibling, for example:
/opt/antigravity.previous/opt/antigravity-ide.previous
After confirming the new version works, remove old install roots if desired:
sudo rm -rf /opt/antigravity.previous /opt/antigravity-ide.previousFor a single-product update, remove only the matching old root:
sudo rm -rf /opt/antigravity.previous
sudo rm -rf /opt/antigravity-ide.previousCheck command wrappers:
which antigravity
which antigravity-ide
ls -l /usr/local/bin/antigravity /usr/local/bin/antigravity-ide
head -5 /usr/local/bin/antigravity /usr/local/bin/antigravity-ideCheck sandbox permissions:
ls -l /opt/antigravity/Antigravity-x64/chrome-sandbox
ls -l /opt/antigravity-ide/Antigravity-IDE/chrome-sandboxExpected mode for system install is -rwsr-xr-x with owner root root.
Launch from terminal:
antigravity
antigravity-ideFor foreground debugging logs:
ANTIGRAVITY_FOREGROUND=1 antigravity --enable-logging=stderr --v=0The installer does not delete user data. Existing settings, sessions, browser profile data, and migration state may live under paths such as:
~/.config/Antigravity~/.cache/antigravity~/.gemini/antigravity~/.gemini/antigravity-cli~/.gemini/antigravity-browser-profile~/.antigravity-ide
Before the first install on this machine, a backup was created at:
<HOME>/antigravity-backups/antigravity-userdata-<BACKUP_TIMESTAMP>.tar.gz
Keep that backup until old conversations, projects, browser allowlists, auth state, and IDE settings are confirmed in the new versions.
The legacy package can be checked with:
apt-cache policy antigravityIf it is installed and you plan to use the new Antigravity 2.0 app as antigravity, remove the legacy package without purging user data:
sudo apt remove antigravityAvoid purge unless you have reviewed what package-owned config files it would remove.
System-wide uninstall of files created by this installer:
sudo rm -rf /opt/antigravity /opt/antigravity.previous \
/opt/antigravity-ide /opt/antigravity-ide.previous \
/usr/local/bin/antigravity /usr/local/bin/antigravity-ide \
/usr/share/applications/antigravity.desktop \
/usr/share/applications/antigravity-ide.desktop \
/usr/share/icons/hicolor/512x512/apps/antigravity.png \
/usr/share/icons/hicolor/512x512/apps/antigravity-ide.pngThis does not remove user data under ~/.config, ~/.cache, ~/.gemini, or ~/.antigravity-ide.