This repository contains a set of scripts to manage the installation, update, and uninstallation of Cursor on Linux systems. Cursor is an AI-first code editor that helps you write better code faster.
You can install Cursor directly using curl:
curl -sSL https://raw.githubusercontent.com/t128n/cursor-linux/main/install.sh | sudo bash
Installs Cursor on your Linux system. The script:
- Downloads the latest Cursor AppImage
- Downloads the Cursor icon
- Installs it to
/opt/cursor
- Creates necessary symlinks and desktop entries
- Sets up proper permissions
Checks for and installs updates to Cursor. The script:
- Verifies the current installed version
- Checks for newer versions
- Downloads and installs updates if available
- Handles the update process safely
Removes Cursor from your system. The script:
- Removes all installed components
- Cleans up symlinks and desktop entries
- Removes the installation directory
Install Cursor:
curl -sSL https://raw.githubusercontent.com/t128n/cursor-linux/main/install.sh | sudo bash
Update Cursor:
curl -sSL https://raw.githubusercontent.com/t128n/cursor-linux/main/update.sh | sudo bash
Uninstall Cursor:
curl -sSL https://raw.githubusercontent.com/t128n/cursor-linux/main/uninstall.sh | sudo bash
If you prefer to install manually:
- Clone this repository:
git clone https://github.com/t128n/cursor-linux.git
cd cursor-linux
- Make the scripts executable:
chmod +x install.sh update.sh uninstall.sh
- Run the installation script:
sudo ./install.sh
- Linux operating system
- Root/sudo access
curl
command-line tool (for direct installation)- Internet connection
Cursor is installed to the following locations:
- Main application:
/opt/cursor/cursor.AppImage
- Icon:
/opt/cursor/cursor.png
- Version file:
/opt/cursor/version.txt
- Desktop entry:
/usr/share/applications/cursor.desktop
- Command-line symlink:
/usr/local/bin/cursor
- Automatic version checking
- Safe installation and update procedures
- Clean uninstallation
- Desktop integration
- Command-line access
- Proper system integration
- One-line installation via curl
Feel free to submit issues and enhancement requests!
This project is licensed under the MIT License - see the LICENSE file for details.