From 5cfd9b05eeb67b9a57c08feee778fb9b2b8c4a5c Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Thu, 31 Dec 2020 09:22:18 +1100 Subject: [PATCH] updating readme --- README.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 60957c9f..f2978010 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,23 @@ If you've been using v3 and want/need to upgrade, checkout the [upgrade guide](h ### [Download the latest binary](https://github.com/mikefarah/yq/releases/latest) -### MacOS: +### wget +Use wget to download the pre-compiled binaries: + +```bash +wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq &&\ + chmod +x /usr/bin/yq +``` + +For instance, VERSION=v4.2.0 and BINARY=yq_linux_amd64 + +### MacOS / Linux via Homebrew: Using [Homebrew](https://brew.sh/) ``` brew install yq ``` -### Ubuntu and other Linux distros supporting `snap` packages: +### Linux via snap: ``` snap install yq ``` @@ -45,17 +55,6 @@ sudo mv /etc/myfile.tmp /etc/myfile rm /etc/myfile.tmp ``` -### wget - -Use wget to download the pre-compiled binaries: - -```bash -wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq &&\ - chmod +x /usr/bin/yq -``` - -For instance, VERSION=v4.0.0 and BINARY=yq_linux_amd64 - ### Run with Docker #### Oneshot use: