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.
- ✅ Dynamic scraping of the official downloads page (
https://cursor.com/download) to always fetch the latest Linux AppImage (x64 or arm64). - ✅ 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).
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).
- Scrape the latest Cursor AppImage URL from the official downloads page.
- 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,wget,libfuse2, andgtk-update-icon-cache(installed automatically on Debian/Ubuntu). - If the downloads page HTML changes significantly, the regex inside the script may need updating.
- Unlike the old JSON API method, this approach should remain stable as it scrapes the actual public release page.
This installer is provided as-is, without warranty.
Inspired by install-cursor.sh and improved for reliability with current Cursor releases.