Package manager
A package manager is a program that installs and updates other programs by name: Homebrew on macOS, WinGet on Windows, npm for Node.js programs, apt, dnf and apk on different kinds of Linux. Claude Code can be installed this way too, but with Homebrew, WinGet and npm you have to update it by hand, while with apt, dnf and apk the update comes with the system. The installer with curl or irm updates the program itself, in the background.
Frequently asked questions
What is a package manager?
A program that installs and updates other programs by name, for example Homebrew or WinGet.Which is better for Claude Code: the installer or a package manager?
The docs recommend the installer: it updates Claude Code itself in the background. A package manager works too, but you update by hand. Source: code.claude.com/docs/en/setup.How do you update Claude Code installed through Homebrew?
With brew upgrade claude-code: it will not update itself. Update with the same manager you installed with.Source: Wikipedia: Package manager
Read more: Claude Code: install and pricing, plans and availability by country
Where it appears · 2
- Claude Code · Harness
- What is OpenSpec, setup and commands · Specs and context