From 25902ff3ee2f52213b27c46f8ff4db369df653f3 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 15 Sep 2021 17:04:37 +0900 Subject: [PATCH] Follow-up to "Provide an easier binary manual installation example command" - use `m` option of `tar`, to avoid hitting `./: Can't restore time` error - sudo is not needed for extracting the archive onto /usr/local - wget -> curl, as wget is not installed by default Signed-off-by: Akihiro Suda --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9fd86c30e5..bafec3bd9bb 100644 --- a/README.md +++ b/README.md @@ -115,9 +115,8 @@ and extract it under `/usr/local` (or somewhere else). For instance: ```bash brew install jq -sudo -i -VERSION=$(wget -cq https://api.github.com/repos/lima-vm/lima/releases/latest -O - | jq -r .tag_name ) -wget -q https://github.com/lima-vm/lima/releases/download/$VERSION/lima-${VERSION:1}-`uname`-`uname -m`.tar.gz -O - | tar -xzC /usr/local +VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name) +curl -fsSL https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz | tar Cxzvm /usr/local ``` - To install Lima from the source, run `make && make install`.