Shell A script to install the latest version of claude code without using the linuxulator.

installing claude desktop on linux
(for a jail or podman) on freebsd

has 2 methods for ubuntu
which is currently the only version of linux supported


1) Add Anthropic's apt repository and install with apt

Code:
sudo apt install curl
sudo curl -fsSLo /usr/share/keyrings/claude-desktop-archive-keyring.asc https://downloads.claude.ai/claude-desktop/key.asc
echo "deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/claude-desktop-archive-keyring.asc] https://downloads.claude.ai/claude-desktop/apt/stable stable main" | sudo tee /etc/apt/sources.list.d/claude-desktop.list
sudo apt update && sudo apt install claude-desktop

which should be possible in a ubuntu podman container

2) or using curl to download a deb file

Code:
curl -fLO "https://downloads.claude.ai/claude-desktop/apt/stable/$(curl -s "https://downloads.claude.ai/claude-desktop/apt/stable/dists/stable/main/binary-$(dpkg --print-architecture)/Packages" | grep '^Filename: pool/main/c/claude-desktop/claude-desktop_' | sort -V | tail -n 1 | cut -d' ' -f2)"

wow looks like they got claude to write that code

and then install the deb

Code:
sudo apt install ./claude-desktop_*.deb

Thanks bro. I tried that way also. Unfortunately one day my system freezes totally and I've lost some files. The reason is the instability of the Linuxulator. In dmesg I seen a lot of repeated errors ; It crashed and ciaone.
 
well under xlibre claude from ports does not hang. seems to be a bug with drm/wayland.

Which version are you running ? I haven't installed it from ports because I'm running 16.0-CURRENT needed by qemu+bhyve :

Code:
marietto# cd claude-code
marietto# make
make: /usr/ports/Mk/bsd.port.mk:1191: UNAME_r (16.0-CURRENT) and OSVERSION (1500068) do not agree on major ver
sion number.
        in /usr/share/mk/bsd.port.mk:27
        in /usr/share/mk/bsd.port.pre.mk:4
        in /usr/ports/misc/claude-code/Makefile:38

make: stopped making "find-new-version" in /usr/ports/misc/claude-code
 
Anyway,with my tecnique I should not wait that YURI creates a new package or port. As soon as a new claude-code is out directly from Anthropic,I can run it.
 
Back
Top