Cursor on Linux is now called Grok Build, and the rename brought a second product with it. You get the desktop app, which is the Cursor editor under a new name, and the Grok Build TUI, a terminal agent that replaces the Cursor CLI. Searches for “cursor renamed grok build” land on an announcement with no install steps. This guide shows how to install Grok Build Linux packages for both: the desktop app as a .deb, an .rpm or an AppImage, and the TUI from its install script.
You’ll also see where each installer puts its files, what happened to the old agent and cursor-agent commands, and how to update or remove everything, the Grok Build Ubuntu repo and the Grok Build Fedora repo included. In December 2026, with Grok Build TUI 2.0.9 and desktop 3.32.25, the .deb ran on Ubuntu 26.04 and 24.04, the .rpm on Fedora 45 and AlmaLinux 10, and the AppImage and TUI installer on Debian 13 as well.
One limit up front: agent runs were not tested. None of the lab machines was signed in, so every install path here ends at the sign-in screen.
See what’s different for Cursor users
SpaceXSI announced the rename on 30 November, after SpaceX completed its acquisition of Cursor in August. Cursor becomes the Grok Build desktop app, and the Grok Build TUI becomes its terminal companion. On Linux, far less changed than that sounds, because the package, the download host and your settings folders all still carry the Cursor name. So if you only use the editor, you can upgrade without touching a single config file.
| Item | Before the rename | Now, as tested on Linux |
|---|---|---|
| Desktop app name | Cursor | Grok Build (menu entry, window title, About dialog) |
| Package name | cursor | cursor, unchanged in both .deb and .rpm |
| Launcher commands | cursor | cursor and the new grok-build |
| Download host | api2.cursor.sh | api2.cursor.sh, redirecting to downloads.cursor.com |
| Package repo added by the installer | downloads.cursor.com/aptrepo and /yumrepo | Same repos, same Anysphere signing key |
| Settings and extensions | ~/.config/Cursor, ~/.cursor | Same folders |
| Terminal agent | Cursor CLI (agent, cursor-agent) | Grok Build TUI (grok); a fresh install links agent and cursor-agent to it |
| Mentions in Slack, GitHub, Linear, Jira | @Cursor | @Build from 7 December |
Read the last two rows twice, since they’re the ones that break things. The announcement promises that command line and API automations calling agent keep working as written, and on a clean machine that holds because the TUI installer points agent at the new binary. If you already had the Cursor CLI installed, it does not fully hold, and the migration section below shows exactly which name gets left behind. Mentions are the other trap: a GitHub issue or Slack thread that still tags @Cursor after 7 December won’t reach the bot, and nothing in your terminal will warn you about it.
Check the requirements first
Both products ship for x86_64 and arm64 only, and the desktop app needs a graphical session, so a headless server gets the TUI and nothing else. Tick these off before you download anything.
- Your system runs glibc 2.28 or newer, since the Grok Build docs rule out musl and Alpine.
- You have about 2 GB of free disk for the desktop app and the TUI together.
- You have a Cursor account, a Grok account or an xAI API key to sign in with.
- You can run
sudoif you want the desktop package, while the TUI needs no root at all.
Lab numbers back that disk figure: the .deb freed 1037 MB when removed, and the TUI’s own folder measured 727 MB after one install. You don’t have to install both products, either. The TUI runs fine over SSH on a box with no desktop, and the desktop app works without the TUI until you call its built-in agent command, which gets its own section further down.
Install the Grok Build TUI
A single script installs the TUI. It picks the right build for your CPU and drops it under your home directory, so it’s the same command on every distro and it never asks for a password. Run it as the user who’ll use the agent, not as root, because everything it installs lands in that user’s home.
curl -fsSL https://x.ai/cli/unified/install.sh | bash
On Ubuntu and Debian the script finishes by telling you to restart the terminal. A run takes well under a minute on a decent connection, since the single download is around 300 MB. You should see two lines and nothing else.
Installing Grok 2.0.9...
Grok 2.0.9 installed. Restart your terminal, then run 'grok' or 'agent' to get started.
That restart matters on Debian family systems because the script appended a PATH line to ~/.bashrc, and your current shell hasn’t read it yet. The script picks the file from your login shell: zsh users get the line in ~/.zshrc, fish users in ~/.config/fish/config.fish, and any other shell in ~/.profile, so swap that file into the commands below if bash isn’t yours. On Fedora and AlmaLinux the message drops the restart part, since ~/.local/bin is already on the default PATH there. If you’d rather keep the terminal you’re in, reload the file in place.
source ~/.bashrc
Now confirm the binary answers. A version that starts with 2 means you’re on the new unified CLI, and the word in square brackets is the update channel, which should read unified.
grok --version
You get the build hash, the public release number and that channel on one line. Save it somewhere if you file bug reports, because support will ask for the hash rather than the short version.
grok 2.0.9 (a43f92cc35ed, public 1.0.100) [unified]
Below is the whole run on Ubuntu, from the script to the version check in a fresh terminal. Look at the symlink listing at the bottom, since it explains why the old command names still work.

If grok comes back as “command not found” over SSH, that’s normal for a non-interactive shell, because it doesn’t read ~/.bashrc. Scripts and CI jobs hit this constantly. Either log in with a real interactive shell or call ~/.local/bin/grok by its full path in anything automated.
Find what the TUI installer changed
The installer touches three places: a ~/.grok folder with the real binary, a set of symlinks in ~/.local/bin, and on Debian family systems two lines in ~/.bashrc. Knowing all three is what lets you remove it cleanly later, so list the links first.
ls -l ~/.local/bin ~/.grok/bin
Every name ends at the same file, agent-host, which is the actual binary in ~/.grok/downloads.
/home/lorna/.grok/bin:
total 0
lrwxrwxrwx 1 lorna lorna 10 Dec 3 06:52 agent -> agent-host
lrwxrwxrwx 1 lorna lorna 42 Dec 3 06:52 agent-host -> ../downloads/agent-host-2.0.9-linux-x86_64
lrwxrwxrwx 1 lorna lorna 10 Dec 3 06:52 grok -> agent-host
/home/lorna/.local/bin:
total 0
lrwxrwxrwx 1 lorna lorna 27 Dec 3 06:52 agent -> /home/lorna/.grok/bin/agent
lrwxrwxrwx 1 lorna lorna 32 Dec 3 06:52 agent-host -> /home/lorna/.grok/bin/agent-host
lrwxrwxrwx 1 lorna lorna 10 Dec 3 06:52 cursor-agent -> agent-host
lrwxrwxrwx 1 lorna lorna 26 Dec 3 06:52 grok -> /home/lorna/.grok/bin/grok
So on a clean machine the three command names are one program, and each prints the same version line. Your old scripts keep running because the names still resolve, but they now get the new TUI underneath, with its own flags and its own sign-in. Test any automation that parses agent output before you trust it again. The channel and download sources live in a small TOML file.
cat ~/.grok/config.toml
Notice the second source on Google Cloud Storage. If a corporate proxy blocks x.ai, that bucket is the other host you’ll need to allow, otherwise updates fail even though the first install worked from home.
[cli]
channel = "unified"
installer = "internal"
[cli.channels.unified]
binary = "agent-host"
sources = [
{ url = "https://x.ai/cli/unified", auth = "anonymous" },
{ url = "https://storage.googleapis.com/grok-build-public-artifacts/cli/unified", auth = "anonymous" },
]
Your PATH change is a marker comment plus an export, which makes it easy to find. Search for the marker rather than scrolling, since your ~/.bashrc may be long.
grep -n -A1 "agent-host" ~/.bashrc
On the Ubuntu LTS VM the two lines landed at the end of the file.
119:# agent-host: ~/.local/bin on PATH
120-export PATH="$HOME/.local/bin:$PATH"
The TUI also reports its own footprint. That’s worth a look on small cloud VMs, because it keeps old builds around after every update and nothing cleans them up for you.
grok du
On a fresh install you should see a total of just over 700 MB. If yours is far larger, an earlier install or a downgrade has already left extra builds behind.
Disk usage for ~/.grok
408.7 MB runtime
304.2 MB downloads
12.9 MB bundled
1.1 MB docs
100.0 KB agent-host
36.0 KB logs
0 B bin
56.0 KB (top-level files)
727.1 MB total
Most of that is the unpacked runtime and the downloaded binary, and the downloads line is the one that grows. Each extra version you install adds roughly another 300 MB to ~/.grok/downloads, so on a 10 GB VM you’ll want to prune it after a couple of updates. The update section shows which files are safe to delete.
Run the TUI for the first time
Start it from inside a project folder, because the TUI treats the current directory as the workspace the agent may read and edit. Starting it in your home folder works too, but then every file you own is in scope, including SSH keys and shell history. A throwaway folder is enough for the first run, since you’re only checking that the binary starts and offers a sign-in.
cd ~/demo
grok
The first screen asks how you want to sign in. Existing Cursor users pick the first option, which also covers work SSO, and Grok accounts take the second. The third accepts a Cursor or xAI API key, and usage is billed to whoever owns that key, so think twice before you paste a company key on a personal machine.

Pressing Esc continues signed out. You land in the normal TUI with a banner that reads “Signed out: /feedback works, and /login signs in”, so you can explore the interface, but every prompt is refused. A one-shot prompt from the shell shows the exact refusal, which is handy to know because it’s the same message a CI job prints when its key is missing.
grok -p "say hi"
Read the error to the end, since it hands you the two ways to sign in when the machine has no browser.
Error: Not signed in. To authenticate without a browser, run:
grok login --device-code
Alternatively, set the XAI_API_KEY environment variable or run `grok login` on a machine with a browser.
On a server over SSH, the device flow is the one you want. It prints a login URL that you open on your laptop, and the terminal waits until the browser side finishes, so keep the SSH session open while you click through.
grok login --device-code
The URL goes to cursor.com, not to a Grok domain, which shows how much of the old plumbing survived the rename. The one-time challenge is cut out of the link below.
Open this URL in a browser to sign in:
https://cursor.com/api/auth/login?redirect_uri=%2FloginDeepControl%3Fchallenge%3D...%26mode%3Dlogin%26redirectTarget%3Dcli%26surface%3Dgrok-build%26signInStarted%3D1&force_authkit=1
Waiting for the sign-in to finish...
The docs spell this flag --device-auth while the CLI’s own error prints --device-code, so try the documented spelling first and fall back to the one in the error. For CI, skip the login entirely and export XAI_API_KEY in the job’s environment, because a device login can’t be completed by a pipeline. You can check where you stand at any point.
grok about
Signed out, the last line says so and the subscription tier stays unknown. You also get the latest version on your channel for free, which makes grok about a quick update check too.
About Grok Build
CLI Version 2.0.9
Latest 2.0.9 (up to date)
Model Auto
Subscription Tier Unknown
OS linux (x64)
Terminal unknown
Shell bash
User Email Not logged in
Once you’re signed in, the email and tier lines fill in, and that’s the quickest check after a login on a remote box. For flags and slash commands after that, the Cursor CLI cheat sheet is a reasonable map, since the TUI runs Cursor’s agent harness underneath.
Move over from the old Cursor CLI
This is the part that trips people up. If the Cursor CLI from cursor.com/install is already on the machine, its agent and cursor-agent links point into ~/.local/share/cursor-agent. The official switch is a channel change, and it needs you signed in first.
cursor-agent update --channel grok
Signed out, it refuses and changes nothing, and the exit code is still 0. Don’t rely on that code in a provisioning script, because the migration silently did not happen.
Log in first with `cursor-agent login`, then run `cursor-agent update --channel grok` again.
The other route is to run the unified install script over the legacy CLI, which is what most people will do by accident after reading the announcement. On Debian 13 it took over agent and added grok, but it left cursor-agent pointing at the old Cursor build.
lrwxrwxrwx 1 lorna lorna 27 Dec 3 07:02 agent -> /home/lorna/.grok/bin/agent
lrwxrwxrwx 1 lorna lorna 32 Dec 3 07:02 agent-host -> /home/lorna/.grok/bin/agent-host
lrwxrwxrwx 1 lorna lorna 78 Dec 3 07:02 cursor-agent -> /home/lorna/.local/share/cursor-agent/versions/2026.12.02-8b70b6c/cursor-agent
lrwxrwxrwx 1 lorna lorna 26 Dec 3 07:02 grok -> /home/lorna/.grok/bin/grok
That split matters if your scripts mix the two names, because agent now runs the new TUI while cursor-agent still runs the legacy CLI, and the two can behave differently on the same prompt. Pick one way out and apply it on every machine, so your fleet doesn’t end up half migrated.
- You sign in and run
cursor-agent update --channel grok, the path SpaceXSI documents. - You repoint the leftover link with
ln -sfn ~/.grok/bin/agent-host ~/.local/bin/cursor-agent, which matches a clean install. - You return to Cursor’s channel with
cursor-agent update --channel cursorif the new harness breaks a workflow.
Users of the older Grok CLI have their own switch, grok update --channel unified, and grok update --legacy-stable rolls back. Both come from the what’s new page. The lab had no old Grok CLI installed to try them on, so treat those two as documented rather than shown.
Install the desktop app on Ubuntu and Debian
The desktop download still comes from Cursor’s update server. Its latest path redirects to the current build, so the same command keeps working after every release and you never have to edit a version into it. Debian 13 takes the same .deb and apt repo, though the .deb install below was run on Ubuntu.
curl -fL -o grok-build.deb https://api2.cursor.sh/updates/download/golden/linux-x64-deb/cursor/latest
On an ARM64 machine, swap linux-x64-deb for linux-arm64-deb. Install the file with apt rather than dpkg, because dpkg won’t fetch the GUI libraries it depends on. A minimal Ubuntu server installed 164 packages, cursor included, so expect a few minutes on a fresh VM.
sudo apt install -y ./grok-build.deb
Your package manager still calls it cursor, so that’s the name to look for in the output. Remember it for later, too, because every apt command for updates and removal uses that name rather than grok-build.
Setting up cursor (3.32.25-1796160219) ...
Besides the app in /usr/share/cursor, the package added two launchers, /usr/bin/cursor and /usr/bin/grok-build, a menu entry named Grok Build, and an apt source. That last one is what turns later updates into a plain apt job, so check it’s there.
cat /etc/apt/sources.list.d/cursor.sources
Expect a deb822 file signed with Anysphere’s key, the same repo Cursor used before the rename.
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
Types: deb
URIs: https://downloads.cursor.com/aptrepo
Suites: stable
Components: main
Architectures: amd64,arm64
Signed-By: /usr/share/keyrings/anysphere.gpg
Launch it from the app menu or from a terminal with grok-build. The first window is the new Agents Window, not the classic editor, and it waits for you to sign in before it does anything useful.
- Click Log In if you already have a Cursor or Grok account, and finish the login in the browser tab it opens.
- Click Sign Up if you don’t, then come back to Log In once the account exists.

- 1Log In
- 2Sign Up
Log In hands the login page to xdg-open, so the machine needs a default browser set before that button can do its job. If you want the familiar VS Code style editor instead of the Agents Window, start it with grok-build --classic followed by a folder. The classic window shows the same two buttons and a notice that its AI features need you logged in.
Install the desktop app on Fedora and AlmaLinux
The RPM build is a single el8 package that installed the same way on Fedora 45 and AlmaLinux 10, and Rocky Linux shares AlmaLinux’s package base, so the commands carry over. Import Anysphere’s signing key first. The package adds a repo that checks signatures on its metadata, and importing the key up front means dnf doesn’t stop to ask you about it on the first refresh.
sudo rpm --import https://downloads.cursor.com/keys/anysphere.asc
Then download the package, using linux-arm64-rpm in the path instead if you’re on ARM64.
curl -fL -o grok-build.rpm https://api2.cursor.sh/updates/download/golden/linux-x64-rpm/cursor/latest
Install it with dnf so the dependencies resolve. AlmaLinux reported 169 packages and 1.3 GB installed on a minimal image, close to the Ubuntu count, so budget the same few minutes on a fresh VM.
sudo dnf install -y ./grok-build.rpm
If you see the warning below at the end, that’s normal. The downloaded RPM itself isn’t signed, and rpm -K reports “SIGNATURES NOT OK” on it, so for that first local install you are trusting the HTTPS download from api2.cursor.sh. Later installs from the repo go through the signature checks it enables.
Warning: skipped OpenPGP checks for 1 package from repository: @commandline
Complete!
The package writes /etc/yum.repos.d/cursor.repo with gpgcheck=1 and repo_gpgcheck=1. Check that dnf can read it and sees the published builds, since a broken repo only shows up later when an update silently does nothing.
sudo dnf list --showduplicates cursor
On AlmaLinux the repo listed the current build and the one before it. Seeing both tells you the key import worked and the metadata signature checked out, so dnf upgrade will pick up new releases from here on.
cursor.x86_64 3.32.24-1796066448.el8 cursor
cursor.x86_64 3.32.25-1796160219.el8 cursor
Run that check with sudo. As a normal user on Fedora 45, dnf printed “repomd.xml GPG signature verification error: Signing key not found” even after the key import. The same command under sudo worked, so that error on its own doesn’t mean the repo is broken. If it also shows up under sudo, the key import didn’t take, and running the rpm --import line again is the fix. Launching from a terminal with grok-build --classic ~/demo opened the classic window on Fedora.

You get the same Log In and Sign Up buttons as on Ubuntu, this time inside the classic editor layout. Once you’re signed in, your existing keybindings and extensions come along, because they live in the same ~/.config/Cursor and ~/.cursor folders the old app used.
Run the AppImage on any distro
The AppImage is the route for Arch, openSUSE and anything else without a native package, and for machines where you don’t want a third party repo added. It ran here on Debian 13, starting from a minimal cloud image to surface every missing piece, and on Ubuntu 26.04, which needed one extra AppArmor step. On ARM64, use linux-arm64 in place of linux-x64 in the URL. You give up automatic updates in exchange, because nothing replaces the file for you. Download it into a folder of its own so the launcher path stays stable when you swap in a newer copy later.
mkdir -p ~/Applications
curl -fsSL -o ~/Applications/GrokBuild.AppImage https://api2.cursor.sh/updates/download/golden/linux-x64/cursor/latest
chmod +x ~/Applications/GrokBuild.AppImage
Running ~/Applications/GrokBuild.AppImage on the bare system failed before any window appeared.
Error: No suitable fusermount binary found on the $PATH
Error: $FUSERMOUNT_PROG not set
Cannot mount AppImage, please check your FUSE setup.
AppImages mount themselves through FUSE, and minimal images don’t ship fusermount. On Debian the fix is the fuse3 package (Ubuntu uses the same name), and on Arch it’s the package of the same name in the extra repo.
sudo apt install -y fuse3
A second attempt mounted the image and then stopped on a missing library. You’ll hit this on any server image without a desktop installed.
cursor: error while loading shared libraries: libnspr4.so: cannot open shared object file: No such file or directory
The AppImage bundles Electron but not the system libraries Electron links against, so the package manager still has to provide them. This set was enough on Debian 13. A normal GNOME or KDE install usually has all of them already, which is why most desktop users never see the error.
sudo apt install -y libnss3 libgtk-3-0t64 libasound2t64 libgbm1 libxkbfile1 libsecret-1-0 xdg-utils
Ubuntu 26.04 failed differently, and Ubuntu 24.04 behaves the same way, since both restrict unprivileged user namespaces through AppArmor. The .deb ships a profile for that, but nothing covers a binary running out of an AppImage mount. Electron’s sandbox then dies at startup, which /tmp/app.log showed in the lab.
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[10700:1203/073040.341908:FATAL:content/browser/zygote_host/zygote_host_impl_linux.cc:207] Check failed: . : Invalid argument (22)
Don’t reach for --no-sandbox, which switches off Chromium’s process isolation for every file you open. A small AppArmor profile that grants user namespaces to the binary inside the mount is the narrower fix, and it’s the one that worked here.
printf 'abi <abi/4.0>,\ninclude <tunables/global>\n\nprofile grok-build-appimage /tmp/.mount_*/usr/share/cursor/cursor flags=(unconfined) {\n userns,\n}\n' | sudo tee /etc/apparmor.d/grok-build-appimage
sudo apparmor_parser -r /etc/apparmor.d/grok-build-appimage
Nothing prints from the parser when the profile loads. The path glob matches the random /tmp/.mount_ folder the AppImage gets on each launch. That glob is also the catch. Since /tmp is writable by everyone, any local user could drop a binary at a matching path and get unconfined namespaces, so keep this profile to a single user desktop and use the .deb on shared machines. With the profile in place, the AppImage on both distros opened the same Agents Window as the .deb, with Log In and Sign Up waiting.

The AppImage doesn’t register itself in your app menu, so it stays invisible to the launcher until you write a desktop entry for it. One printf line creates the file without an editor.
mkdir -p ~/.local/share/applications
printf '[Desktop Entry]\nName=Grok Build\nExec=%s/Applications/GrokBuild.AppImage %%F\nType=Application\nCategories=Development;IDE;\n' "$HOME" > ~/.local/share/applications/grok-build.desktop
The %%F becomes %F in the file, so files you open from a file manager are passed through to the app. Check the result with cat ~/.local/share/applications/grok-build.desktop.
[Desktop Entry]
Name=Grok Build
Exec=/home/lorna/Applications/GrokBuild.AppImage %F
Type=Application
Categories=Development;IDE;
One more AppImage quirk: --version on the AppImage starts the GUI instead of printing a number. Use the About dialog from the version section to read its build instead.
Get past the OS keyring prompt
On a lightweight window manager or a remote session with no GNOME Keyring or KWallet running, the app stops on a dialog saying an OS keyring couldn’t be identified for storing encryption related data. It needs somewhere safe to keep your login token, and without a keyring it has nowhere to put it.

Click Use weaker encryption to carry on, or skip the dialog on later launches with grok-build --password-store=basic. Know what you’re trading: with the basic store, the app’s own log says “no trustworthy OS secrets manager is available” and that it’s “keeping auth tokens as plaintext” under your home folder. That’s tolerable on a single-user lab VM. On a machine you sign in on every day, install GNOME Keyring or KWallet instead, so the token sits behind your login password.
Check the installed versions
For the .deb and .rpm installs, the launcher prints the version, commit and architecture without opening a window, so it’s safe to run over SSH.
grok-build --version
Every machine with the .deb or the .rpm reported the same build. You get three lines: the version, the full commit, and the architecture, which is how you confirm an ARM64 box really got the ARM64 package.
3.32.25
d3b7354f6e7809088c6623719f50cfbdf33a0480
x64
Inside the classic window, open the command palette with Ctrl+Shift+P, type About and press Enter. Read the Version line for the build and its date, and use Check for Updates to ask the update server for anything newer.

- 1Version line
- 2Check for Updates
The copyright line underneath still reads Anysphere, the company behind Cursor. Don’t expect the desktop and TUI numbers to match, either: the desktop counts in the 3.x line and the TUI in the 2.x line, and they ship on separate schedules. When you report a bug, give both numbers, since a problem in the agent panel can come from either side. The Copy version info button next to the update button puts the desktop details on your clipboard in one click, and grok --version covers the terminal side.
Use the agent from the desktop app
The desktop launcher has an agent subcommand of its own. The grok-build wrapper script looks for ~/.local/bin/cursor-agent and runs it, and if the file is missing it installs the Cursor CLI from cursor.com/install first. With the TUI already installed, that link points at the new binary, so you get Grok Build instead.
grok-build agent --version
On the Ubuntu LTS VM, with the .deb and the TUI side by side, it answered with the TUI’s version string.
grok 2.0.9 (a43f92cc35ed, public 1.0.100) [unified]
So install the TUI before you first run grok-build agent. Otherwise the wrapper fetches the legacy Cursor CLI on its own, and you end up in the split state from the migration section without ever choosing it.
Update Grok Build
The TUI updates itself, but it’s worth asking first, because the check tells you which channel you’re on as well as whether anything is waiting.
grok update --check
You get the installed version next to the latest one on your channel. When the two numbers match, there’s nothing to do.
Grok Build - v2.0.9 (latest: 2.0.9) [unified]
Then grok update installs the newer build, or says “Already up to date” when there isn’t one. If a release breaks something, you can pin an older build and come back later. To see what that leaves behind, one lab machine went down a release and back up again.
# builds: https://x.ai/changelog/build
grok update --version 2.0.7
grok update
Both directions worked, and both binaries stayed in the downloads folder afterwards. You can see them in the last two lines of the output, about 300 MB each.
Downloading Grok 2.0.7...
Updated to 2.0.7.
grok 2.0.7 (11c359439e88, public 1.0.98) [unified]
Downloading Grok 2.0.9...
Updated to 2.0.9.
grok 2.0.9 (a43f92cc35ed, public 1.0.100) [unified]
agent-host-2.0.7-linux-x86_64
agent-host-2.0.9-linux-x86_64
Delete the old agent-host-* file from ~/.grok/downloads once you’re happy with the new one, since each is about 300 MB. Leave the one that ~/.grok/bin/agent-host points at, or every command name breaks at once. Running ls -l ~/.grok/bin shows which file that is before you delete anything. The desktop app updates through the repo its package added, and on Ubuntu and Debian that’s two apt commands.
sudo apt update
sudo apt install --only-upgrade cursor
On Fedora and AlmaLinux, and on Rocky, which shares AlmaLinux’s package base, the same job is one dnf command. Add --refresh so dnf fetches fresh metadata instead of trusting a cache that may be hours old.
sudo dnf upgrade --refresh cursor
Both replied that nothing was newer on the day they ran. For the AppImage there’s no repo, so download the latest URL over the old file again, or use Check for Updates in the About dialog.
Uninstall Grok Build
The TUI has no uninstaller, so you remove the three things it created by hand: the ~/.grok folder, the links in ~/.local/bin, and the PATH lines in ~/.bashrc. The sed command deletes the marker comment and the export line after it. On Fedora, where no line was added, it simply does nothing. If you migrated from the old Cursor CLI, also delete ~/.local/share/cursor-agent, which holds its versions.
rm -rf ~/.grok
rm -f ~/.local/bin/grok ~/.local/bin/agent ~/.local/bin/agent-host ~/.local/bin/cursor-agent
sed -i '/# agent-host: ~\/.local\/bin on PATH/,+1d' ~/.bashrc
In a new terminal, type grok should answer “bash: type: grok: not found”. Removing the desktop package on Ubuntu also deletes the apt source it added, so there’s nothing left in /etc/apt afterwards.
sudo apt remove -y cursor
sudo apt autoremove -y
dnf behaves differently here. It removed the package and the 120 or so dependencies it pulled in, but it left /etc/yum.repos.d/cursor.repo in place, so every later dnf upgrade would keep querying Cursor’s server. That’s harmless on a laptop, but on a server with strict egress rules it turns into a failed metadata download on every update, and the imported Anysphere key stays trusted too. Delete the repo file by hand once the package is gone.
sudo dnf remove -y cursor
sudo rm -f /etc/yum.repos.d/cursor.repo
For the AppImage, delete the file and its launcher entry. Neither the packages nor the AppImage touch your settings on removal, so finish with the two user folders if you want a truly clean slate.
rm -f ~/Applications/GrokBuild.AppImage ~/.local/share/applications/grok-build.desktop
rm -rf ~/.config/Cursor ~/.cursor
Keep ~/.cursor if you plan to reinstall, because it holds your extensions, plugins and project agent data, while ~/.config/Cursor holds editor settings. On the test machine they were 3.3 MB and 93 MB after a single launch, so a long-used install will be far bigger.
Decide where Grok Build fits
If you were happy on Cursor, you can stop here. The desktop app is the same editor, your settings carried over, and updates keep flowing from the same repo, so the rename costs a desktop user almost nothing. The real changes sit in the terminal and in how you sign in, and those are worth a few minutes of cleanup now.
- You’ve checked that
cursor-agentpoints atagent-hoston every machine you migrated. - You’ve switched
@Cursormentions in Slack, GitHub, Linear or Jira to@Buildbefore 7 December. - You’ve set
XAI_API_KEYin any CI job that callsagentorgrok.
If the rename has you shopping around, our roundup of AI IDEs that run well on Linux covers the alternatives, and the Cursor vs Windsurf vs Kiro comparison still applies to the editor under its new name. For the terminal side, our OpenCode vs Claude Code vs Cursor test puts Cursor’s agent next to other CLIs. Our hands-on test of the current Grok model covers the model family behind the brand.