Open a terminal
On most systems, press Ctrl + Alt + T, or search for Terminal in your apps. To paste into it, use Ctrl + Shift + V.
Make sure curl is there
The installer needs
curl. Fresh Ubuntu and Debian installs may not have it:Ubuntu or Debiansudo apt install curlInstall Claude Code
Terminalcurl -fsSL https://claude.ai/install.sh | bashWhen it finishes you'll see Claude Code successfully installed! This version updates itself in the background.
Check Claude Code
Open a new terminal window and run:
Terminalclaude --versionA version number followed by (Claude Code). If you get
command not found: claude, see the troubleshooting page.Install Git
Ubuntu or Debiansudo apt install gitFedorasudo dnf install gitThen check it with
git --version.Install the GitHub CLI
The GitHub CLI team publishes its own package repository. Follow the block for your system on their Linux install page: "Debian" covers Ubuntu, Debian and Raspberry Pi, and "RPM" covers Fedora. Copy the whole block for your system into the terminal. Then check:
Terminalgh --versionAlready have Claude Code signed in? You can ask it to walk you through that block one command at a time.
Sign in and make an account
Run
claudeonce to sign in (Claude Code guide), and make a free GitHub account and connect it (Git and GitHub).
Other ways to install Claude Code
Claude Code publishes signed apt, dnf and apk repositories. Packages installed that way update with the rest of your system instead of updating themselves. The steps, with the key fingerprint to check, are on the Advanced setup page. On Alpine, install bash, curl, libgcc, libstdc++ and ripgrep first; the same page explains the extra setting it needs.
ChromeOS isn't covered here yet. It isn't on the official list of supported systems.
You're set up when
claude --version,git --versionandgh --versioneach print a version number.- Running
claudeopens a session without asking you to log in again.
Sources
Read on October 4, 2026.
- Claude Code, Advanced setup: supported systems, the install command, Linux package repositories, Alpine requirements, updates.
- Claude Code, Terminal guide for new users: opening a terminal and pasting on Linux, the success message.
- Git, Install for Linux: apt and dnf.
- Installing gh on Linux and BSD.