Debian Repository (read: Aptly)

Feature request for product/service

Installer

Describe the request

I see Debian/Ubuntu DEB files are available for download. This is a major upgrade from the “AppImage” only installs that were only previously available.

However, there’s no repo to install them.

If the cursor team needs a (former) sysadmin (now DevOps) guy to help them setup and maintain a pipeline to help with an aptly repo and make it possible to apt-get install cursor.sh from the terminal, I’d love to help get this setup!

Until then, I will start to maintain a clone of the repos using my own setup.

You can trust the key via:

sudo wget -O /etc/apt/trusted.gpg.d/markizano.net.asc https://apt.markizano.net/key.asc

You can add this to /etc/apt/sources.list.d/cursor.list:

# For AMD64 systems
deb [arch=amd64] https://apt.markizano.net/ cursor main
# For ARM64 systems
deb [arch=arm64] https://apt.markizano.net/ cursor main

After that, it should be as easy as apt-get update && apt-get install cursor and from then on apt-get upgrade will upgrade to the latest verrsion.

I’ll setup a script to remind me daily to make sure this stays up to date.

Also, please don’t setup automation against this. It’s just a little tiny VPS hosted local to me in Dallas, TX and not built for scale. A few manual installs shouldn’t be too much tho.

I would really prefer to see the Cursor team support this and out of enthusiasm, I have set it up so it can be installed via my personal aptly installation. Also happy to send a PR to any automation the team has to enable this to be automatically available via something like apt.cursor.sh or something like that once new packages are submitted and ready to be published. I can also contribute to the docs to make sure folks can download the signing key, setup their apt-get config as such and get them off to the races!

I have a blog here too that helps tie this together to make it easy to roll your own if you want.

Thanks much for putting together an awesome product!

Operating System (if it applies)

Linux

Hey, thanks for the report and the enthusiasm, but good news: there’s already an official APT repo, so you don’t need to set anything up separately.

When you install the .deb from Cursor · Download, the postinst script automatically adds the apt source and installs the GPG key. After that, updates come via apt-get update && apt-get upgrade.

If you want to set it up manually, like for Docker or CI, here’s the correct way:

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://downloads.cursor.com/keys/anysphere.asc \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/cursor.gpg > /dev/null

echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/cursor.gpg] https://downloads.cursor.com/aptrepo stable main' \
  | sudo tee /etc/apt/sources.list.d/cursor.list

Then run sudo apt-get update && sudo apt-get install cursor, and update via apt-get upgrade.

So you can safely shut down your clone repo. If you hit GPG or hash errors during apt update on some distro, this thread has common fixes like duplicate repo files or an old key in trusted.gpg: Installing Cursor via APT .deb Package Breaks apt update. Let me know if anything doesn’t work.

That is fantastic news! I didn’t realize it came packed with the DEB file. Thanks much!