Claude Code Society, home

Learn, setup

Set up on Linux

Everything the six lessons need on Linux: Claude Code, Git, and the GitHub command line tool. The commands are for Ubuntu and Debian, with Fedora noted where it differs.

  1. 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.

  2. Make sure curl is there

    The installer needs curl. Fresh Ubuntu and Debian installs may not have it:

    Ubuntu or Debian
    sudo apt install curl
  3. Install Claude Code

    Terminal
    curl -fsSL https://claude.ai/install.sh | bash

    When it finishes you'll see Claude Code successfully installed! This version updates itself in the background.

  4. Check Claude Code

    Open a new terminal window and run:

    Terminal
    claude --version

    A version number followed by (Claude Code). If you get command not found: claude, see the troubleshooting page.

  5. Install Git

    Ubuntu or Debian
    sudo apt install git
    Fedora
    sudo dnf install git

    Then check it with git --version.

  6. 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:

    Terminal
    gh --version

    Already have Claude Code signed in? You can ask it to walk you through that block one command at a time.

  7. Sign in and make an account

    Run claude once 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 --version and gh --version each print a version number.
  • Running claude opens a session without asking you to log in again.

Sources

Read on October 4, 2026.

  1. Claude Code, Advanced setup: supported systems, the install command, Linux package repositories, Alpine requirements, updates.
  2. Claude Code, Terminal guide for new users: opening a terminal and pasting on Linux, the success message.
  3. Git, Install for Linux: apt and dnf.
  4. Installing gh on Linux and BSD.