Native installation and packaging utility for running Antigravity 2.0 Agent and Antigravity 2.0 IDE on Fedora Workstation.
This project supports installation via direct scripts (install.sh) or native Fedora RPM packages built locally.
The easiest way to install Antigravity is by running the installer directly or using the local shell script.
One-liner (No clone required): Run the installer directly from the repository (supports interactive prompts and options):
bash <(curl -fsSL https://raw.githubusercontent.com/jssroberto/antigravity-2-fedora-installer/main/install.sh) [options]Local script: Clone the repository and run the script:
./install.sh [options]Unless --mode is specified, the installer runs interactively and prompts you to select the target variant:
- Antigravity 2.0 IDE (Development Environment)
- Antigravity 2.0 Agent (Background Agent / Hub)
| Option | Argument | Description |
|---|---|---|
--mode |
ide | agent |
Choose the target variant to install (bypasses interactive menu). |
--user |
None | Install to user space (~/.local) without requiring root/sudo. |
--url |
<url> |
Override the default download URL. |
--dry-run |
None | Perform validation checks and download the package without writing files. |
-y, --yes |
None | Automatically accept prompts during updates or reinstallations. |
-h, --help |
None | Display usage guide and exit. |
Depending on the install scope (system-wide vs. user-local) and the selected mode:
- System-Wide (Default, requires
sudo):- Installation Directory:
/opt/antigravity-Linuxor/opt/antigravity-ide-Linux - Binary Symlink:
/usr/local/bin/antigravityor/usr/local/bin/antigravity-ide - Launcher Path:
/usr/share/applications/antigravity.desktopor/usr/share/applications/antigravity-ide.desktop
- Installation Directory:
- User-Local (
--user, passwordless):- Installation Directory:
~/.local/share/antigravity-Linuxor~/.local/share/antigravity-ide-Linux - Binary Symlink:
~/.local/bin/antigravityor~/.local/bin/antigravity-ide - Launcher Path:
~/.local/share/applications/antigravity.desktopor~/.local/share/applications/antigravity-ide.desktop
- Installation Directory:
Note: If ~/.local/bin is not in your $PATH during a user-local installation, the installer will display shell configuration commands to help you add it.
You can build and install native RPM packages for Fedora using the provided spec files.
Install the required packaging tools and dependencies (no compilers are required since the RPMs repackage precompiled upstream binaries):
sudo dnf install -y spectool rpkg tar gzipRun the corresponding build script to download the upstream archives and package them locally:
- Build Agent RPM (
antigravity2):./build.sh
- Build IDE RPM (
antigravity2-ide):./build-ide.sh
The output RPM files will be generated in ~/rpkg/ (or the folder defined by $OUTDIR).
Install the compiled RPMs via dnf:
# Install the Antigravity Agent
sudo dnf install ~/rpkg/$(uname -m)/antigravity2-2.9.1-*.rpm
# Install the Antigravity IDE
sudo dnf install ~/rpkg/$(uname -m)/antigravity2-ide-2.5.5-*.rpmThe CLI command name depends on your chosen installation method:
| Application | Installed via Script (install.sh) |
Installed via RPM |
|---|---|---|
| Antigravity 2.0 Agent | antigravity |
antigravity2 |
| Antigravity 2.0 IDE | antigravity-ide |
antigravity2-ide |
The generated desktop entries run Chromium/Electron using native Wayland flags for accelerated hardware rendering:
--ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,CanvasOopRasterization --enable-gpu-rasterization --enable-zero-copy
If legacy Antigravity 1.x is present on the system, the installer handles compatibility by renaming legacy launcher files to *-legacy.desktop (e.g. antigravity-legacy.desktop), allowing v1.x and v2.0 to run side-by-side.
Use the uninstall.sh utility to cleanly remove all files, directories, desktop launchers, and databases.
./uninstall.sh [options]- CLI Options:
--ide(IDE only),--agent(Agent only),--both(complete cleanup), or--user(limit scope to user space). - Interactive Menu: Run
./uninstall.shwithout options to choose via terminal prompt.
If you installed via RPM, remove the packages directly via dnf:
sudo dnf remove antigravity2 antigravity2-ideThis installer project is open-source and available under the MIT License. The upstream Antigravity binaries packaged by this utility are proprietary and subject to Google Terms of Service.