installing yq
Note
There are two different YAML processors named yq, one by Andrey Kislyuk that functions as a jq wrapper, and one by Mike Farah that is separate from jq.
Andrey Kislyuk's yq
Use sudo -H pip install yq
to install using pip.
Mike Farah's yq
Note
Mike Farah's yq can be launched with yq.v2
.
Install Go, use go get gopkg.in/mikefarah/yq.v2 && cd $HOME/go/src/gopkg.in/mikefarah/yq.v2 && go build
to download and install Mike Farah's yq, then append PATH=$PATH:$HOME/go/src/gopkg.in/mikefarah/yq.v2/
to .bashrc.
Alternative installation methods
- Use
sudo add-apt-repository ppa:rmescandon/yq -y && sudo apt update && sudo apt install yq -y
to install from Ubuntu PPA. - Use
snap install yq
to install using Snappy.
Personal experience
- Snappy installation tested in Kubuntu 17.10.
- PPA installation does not work in Kubuntu 17.10.
prior work
- The method of installing Andrey Kislyuk's yq using pip was introduced to me by the Installation section of Andrey Kislyuk's yq's GitHub
- The method of installing Mike Farah's yq using Go, PPA, or Snappy was introduced to me by the Install section of Mike Farah's yq's GitHub
licensing
No rights reserved: CC0 1.0.