forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework installation
- Loading branch information
Showing
3 changed files
with
64 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,45 @@ | ||
# Installation | ||
|
||
One line install: | ||
* [macOS with Homebrew](#macos-with-homebrew) | ||
* [Linux with Snap](#linux-with-snap) | ||
* [One-line binary install](#one-line-binary-install) | ||
* [Pre-built packages and binaries](#pre-built-packages-and-binaries) | ||
* [From source](#from-source) | ||
* [Upgrading](#upgrading) | ||
|
||
curl -sfL https://install.goreleaser.com/github.com/twpayne/chezmoi.sh | sh | ||
|
||
On macOS you can install chezmoi with [Homebrew](https://brew.sh): | ||
## macOS with Homebrew | ||
|
||
brew install twpayne/taps/chezmoi | ||
|
||
On Linux distributions with [snap](https://snapcraft.io), you can install | ||
chezmoi with: | ||
## Linux with Snap | ||
|
||
snap install chezmoi --classic | ||
|
||
Pre-built packages and binaries: | ||
## One-line binary install | ||
|
||
curl -sfL https://git.io/chezmoi | sh | ||
|
||
## Pre-built packages and binaries | ||
|
||
| OS | Architectures | Package location | | ||
| ---------- | --------------------------------------------- | -------------------------------------------------------------------- | | ||
| Arch Linux | i686, x86_64 | [aur package](https://aur.archlinux.org/packages/chezmoi) | | ||
| Debian | amd64, arm64, armel, i386, ppc64, ppc64le | [deb package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| RedHat | aarch64, armhfp, i686, ppc64, ppc64le, x86_64 | [rpm package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| OpenSUSE | aarch64, armhfp, i686, ppc64, ppc64le, x86_64 | [rpm package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| FreeBSD | amd64, arm, i386 | [tar.gz package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| OpenBSD | amd64, arm, i386 | [tar.gz package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| Linux | amd64, arm, arm64, i386, ppc64, ppc64le | [tar.gz package](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| OS | Architectures | Package | | ||
| ---------- | --------------------------------------------- | -------------------------------------------------------------- | | ||
| Arch Linux | i686, x86_64 | [`aur`](https://aur.archlinux.org/packages/chezmoi) | | ||
| Debian | amd64, arm64, armel, i386, ppc64, ppc64le | [`deb`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| RedHat | aarch64, armhfp, i686, ppc64, ppc64le, x86_64 | [`rpm`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| OpenSUSE | aarch64, armhfp, i686, ppc64, ppc64le, x86_64 | [`rpm`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| FreeBSD | amd64, arm, i386 | [`tar.gz`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| OpenBSD | amd64, arm, i386 | [`tar.gz`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
| Linux | amd64, arm, arm64, i386, ppc64, ppc64le | [`tar.gz`](https://github.com/twpayne/chezmoi/releases/latest) | | ||
|
||
If you have Go installed you can install the latest version from `HEAD`: | ||
## From source | ||
|
||
go get -u github.com/twpayne/chezmoi | ||
cd $(mktemp -d) && go get -u github.com/twpayne/chezmoi | ||
|
||
## Upgrading | ||
|
||
Once chezmoi is installed, you can upgrade it to the latest release with: | ||
|
||
chezmoi upgrade | ||
chezmoi upgrade | ||
|
||
This will re-use whichever mechanism you used to install chezmoi to install the | ||
latest release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters