This script provides a system-wide installer for Cursor, the AI-first code editor.
It was originally inspired by install-cursor.sh, but as Cursor's release page and API changed, the original script no longer works reliably.
We adapted and improved the script to ensure it stays functional with the latest Cursor releases.
- Uses official Cursor API (
https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=latest) for reliable version fetching. - No HTML scraping — direct JSON API response with version, commit SHA, and download URL.
- Robust error handling with proper exit codes and sanity checks.
- Architecture detection (
x86_64→x64,aarch64→arm64). - System-wide installation to
/opt/Cursor-patched. - Symlink in PATH at
/usr/local/bin/cursorfor easy launching. - Desktop entry + icon installation for menu integration.
- Optional legacy VS Code marketplace patch (disabled by default).
- Removed wget dependency — only requires
curl.
Run directly from the gist:
curl -sSL https://gist.githubusercontent.com/andrescera/13c422a07c50257e44b4f73d7fccb2d5/raw/install-cursor-on-linux.sh | sudo bashThis will:
- Detect your architecture (x64 or arm64).
- Fetch the latest Cursor AppImage URL from the official API.
- Extract and install Cursor under
/opt/Cursor-patched. - Create a symlink
/usr/local/bin/cursor. - Install a system-wide icon and
.desktoplauncher.
After installation, launch Cursor:
- From your application menu → Cursor (Patched)
- Or run directly in the terminal:
cursor-
Force architecture (if detection fails):
ARCH=arm64 curl -sSL https://gist.githubusercontent.com/andrescera/13c422a07c50257e44b4f73d7fccb2d5/raw/install-cursor-on-linux.sh | sudo bash -
Enable VS Code Marketplace patch (not guaranteed to work on latest builds):
PATCH_MARKETPLACE=1 curl -sSL https://gist.githubusercontent.com/andrescera/13c422a07c50257e44b4f73d7fccb2d5/raw/install-cursor-on-linux.sh | sudo bash
- Requires
curl,libfuse2, andgtk-update-icon-cache(installed automatically on Debian/Ubuntu). - Uses official Cursor API which should remain stable across releases.
This installer is provided as-is, without warranty.
Inspired by install-cursor.sh and improved for reliability with current Cursor releases.