A utility script to update the Cursor IDE on Linux systems.
This script fetches the latest version, handles installation, and provides various options for customization.
- Python 3.12 or higher.
requestspackagepackagingpackagesudoprivileges (for installation)
Basic usage:
./update-cursor.pyCheck for updates without installing:
./update-cursor.py --checkForce update even if the current version is the latest:
./update-cursor.py --forceSkip backing up the existing installation:
./update-cursor.py --no-backupEnable verbose logging:
./update-cursor.py --verbose- The script checks for the currently installed Cursor version
- It contacts the Cursor API to determine the latest available version
- If an update is needed, it:
- Backs up the existing installation (unless
--no-backupis specified) - Downloads the latest AppImage with a progress indicator
- Extracts the AppImage and fixes permissions
- Installs to
/opt/cursor/ - Creates symlinks and updates the desktop database
- Cleans up temporary files
- Backs up the existing installation (unless
Logs are stored in ~/.cursor_updater.log for debugging purposes.
If you encounter issues:
- Check the log file:
cat ~/.cursor_updater.log - Try running with the
--verboseflag for more detailed output - Make sure you have sudo privileges
- Verify internet connectivity
This is normal for some Cursor versions. You may need to run Cursor with the --no-sandbox flag.
The script requires sudo privileges to install to /opt/cursor/. Make sure you have sudo access.
If you can't connect to the Cursor API, check your internet connection and proxy settings.
This script is provided under the MIT License. Feel free to modify and distribute as needed.
Contributions are welcome! Please feel free to submit a Pull Request.