Skip to content

Latest commit

 

History

History
82 lines (59 loc) · 4.43 KB

INSTALL.md

File metadata and controls

82 lines (59 loc) · 4.43 KB

chezmoi Install Guide

One-line binary install

Install the correct binary for your operating system and architecture in ./bin with a single command.

curl -sfL https://git.io/chezmoi | sh

One-line package install

Install chezmoi with a single command.

OS Method Command
Linux snap snap install chezmoi --classic
Linux Linuxbrew brew install twpayne/taps/chezmoi
Alpine Linux apk apk add chezmoi
Arch Linux pacman pacman -S chezmoi
NixOS Linux nix-env nix-env -i chezmoi
macOS Homebrew brew install twpayne/taps/chezmoi
Windows Scoop scoop bucket add twpayne https://github.com/twpayne/scoop-bucket && scoop install chezmoi

Pre-built Linux packages

Download a package for your operating system and architecture and install it with your package manager.

Distribution Architectures Package
Debian amd64, arm64, armel, i386, ppc64, ppc64le deb
RedHat aarch64, armhfp, i686, ppc64, ppc64le, x86_64 rpm
OpenSUSE aarch64, armhfp, i686, ppc64, ppc64le, x86_64 rpm
Ubuntu amd64, arm64, armel, i386, ppc64, ppc64le deb

Pre-built binaries

Download an archive for your operating system containing a pre-built binary, documentation, and shell completions.

OS Architectures Archive
FreeBSD amd64, arm, i386 tar.gz
Linux amd64, arm, arm64, i386, ppc64, ppc64le tar.gz
macOS amd64 tar.gz
OpenBSD amd64, arm, i386 tar.gz
Windows amd64, i386 zip

All pre-built Linux packages and binaries

All pre-built binaries and packages can be found on the chezmoi GitHub releases page.

From source

Download, build, and install chezmoi for your system:

cd $(mktemp -d)
git clone --depth=1 https://github.com/twpayne/chezmoi.git
cd chezmoi
go install

Building chezmoi requires Go 1.13 or later.

Upgrading

If you have installed a pre-built binary of chezmoi, you can upgrade it to the latest release with:

chezmoi upgrade

This will re-use whichever mechanism you used to install chezmoi to install the latest release.