Best way to use Claude code and Claude desktop

What is the best way to Claude code and Claude desktop with openSuse? Anthropic is only offering beta packages for Ubuntu.

I would prefer to use an RPM from the openSuse project. As this is not possible, I don’t want to have a script to install I-don’t-know-what in my systems. Rather, I prefer having everything in a single folder.

But this is the way how Claude code is installed. Via the installation script provided by Anthropic. What do you expect when upstream only provides this solution for their proprietary product? There is nothing what openSUSE can do about that. Have a read at Anthropics documentation.

5 Likes

I don’t know, that is why I am asking. Docker or Flatpack comes into my mind.

Anthropic does not provide such possibility.

As already said, you can only install it via the provided shell script (from Anthropic) if you don’t use any Debian based distribution. If you use a Debian based distribution, you can install Claude Desktop from the Anthropic owned repository.

It is all in the Anthropic docs.

And Anthropic also provides a rpm repository. Even if their documentation only describes how to use it with dnf, it is quite easy to adapt the instructions to be able to use it with zypper or Myrlyn.

As i don’t have an Anthropic account or subscription and also do not intend to buy one it is up to you to test it…but it does not throw an error when i basically tested it.

The documentation:

You need to adapt the path so that it looks like this:

sudo tee /etc/zypp/repos.d/claude-code.repo <<'EOF'
[claude-code]
name=Claude Code
baseurl=https://downloads.claude.ai/claude-code/rpm/stable
enabled=1
autorefresh=1
gpgcheck=1
gpgkey=https://downloads.claude.ai/keys/claude-code.asc
EOF

I added the autorefresh flag, as Anthropics content of the repo file is missing it.
Now you can perform
sudo zypper in claude-code

2 Likes

For the desktop app make a Debian or a Ubuntu Distrobox.

If you need it to help you fix something on your pc tell it it’s in a Distrobox and it will figure it out from there.

1 Like

I used the basic installer from anthropic. I like being able to use it on the cli. the only suggestion if you have a large quantity of text to input , then type it in a text editor first, then copy/paste. An errant CTL-C will delete what you have written so far in the CLI.
Being not sandboxed it is able to make fixes to the install. I queried the nouveau flickering screen error that also appeared on a recent thread here, and it looked through the logs and created a script in .config wiithin about 1 minute which fixed the issue.
One of the first things i did after installing it was to tell it to ask me for various bash commands i should run for it to build up a file with my system specs. very useful if you run into a problem later.

Anyway, I have just asked claude for the install options, and here is the result:

 Recommended: the native installer (any distro, openSUSE included)
  curl -fsSL https://claude.ai/install.sh | bash
  - Installs to ~/.local/share/claude/versions/, with a launcher at ~/.local/bin/claude. It doesn't need root.
  - Updates itself in the background.
  - If claude isn't found afterwards, ~/.local/bin isn't on your PATH. Add it to ~/.bashrc and open a new terminal.
  - For the slower release channel, which runs about a week behind and skips releases with known regressions: ... | bash -s stable
  - Check the install with claude --version and claude doctor.

  Alternative: the RPM repository
  Anthropic now publishes signed apt, dnf and apk repositories. The docs only cover Fedora and RHEL with dnf, but zypper can use the same RPM repository. That works in principle; the docs don't list openSUSE, so I haven't seen it
  confirmed there.
  sudo rpm --import https://downloads.claude.ai/keys/claude-code.asc
  sudo zypper ar -f https://downloads.claude.ai/claude-code/rpm/stable claude-code
  sudo zypper in claude-code
  - The key fingerprint should be 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE.
  - This version doesn't update itself. Updates come through zypper dup/zypper up, which suits people who want all their software managed by the package manager.

  npm: still supported, no longer the main route
  - npm install -g @anthropic-ai/claude-code needs Node 22 or later.
  - It installs the same native binary; Node is only used for the install.
  - The docs say not to use sudo npm install -g.

  Requirements: a paid Pro, Max, Team, Enterprise or Console account. The free claude.ai plan doesn't include Claude Code.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.