1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
Files
stedolan-jq/docs/content/download/default.yml

206 lines
8.5 KiB
YAML
Raw Normal View History

2012-09-18 17:51:53 +01:00
headline: Download jq
body:
- text: |
jq is written in C and has no runtime dependencies, so it should be
possible to build it for nearly any platform. Prebuilt binaries are
available for Linux, OS X and Windows.
The binaries should just run, but on OS X and Linux you may need
to make them executable first using `chmod +x jq`.
2012-09-18 17:51:53 +01:00
jq is licensed under the MIT license. For all of the gory
details, read the file `COPYING` in the source distribution.
2012-09-19 00:08:02 +01:00
jq uses a C library for decimal number support. This is an ICU 1.8.1
licensed code obtained from the ICU downloads archive
http://download.icu-project.org/files/decNumber/decNumber-icu-368.zip.
2012-10-23 14:46:44 +01:00
### Linux
2015-08-13 22:33:37 -07:00
* jq 1.5 is in the official [Debian](https://packages.debian.org/jq) and
2015-08-07 21:40:19 -07:00
[Ubuntu](http://packages.ubuntu.com/jq) repositories. Install using
`sudo apt-get install jq`.
* jq 1.5 is in the official
2023-06-16 15:03:32 +02:00
[Fedora](https://src.fedoraproject.org/rpms/jq) repository.
Install using `sudo dnf install jq`.
2015-09-20 14:11:35 +03:00
* jq 1.4 is in the official [openSUSE](https://software.opensuse.org/package/jq)
repository. Install using `sudo zypper install jq`.
* jq 1.5 is in the official
[Arch](https://www.archlinux.org/packages/?sort=&q=jq&maintainer=&flagged=)
docs: fix seriously dangerous download instructions for Arch Linux The current instructions tell users to perform two actions: - update the package database - install the jq package The only thing users need to or should be doing is actually installing the jq package -- regardless of which version is being installed. Guidelines on how to perform system updates are massively out of scope. In the case of partially performing a system update as a prerequisite for installing jq, the official guidance from Arch Linux is not to do this: partial updates are not supported, we refuse to support them, and anyone who does try to perform them anyway is assumed to know so much about their system that they clearly do not ever need help from anyone else (which is a good thing since they won't get it). The result is a frankensteined system that can only ever be supported by the person who frankensteined it to begin with. The only reason the package manager even allows it to occur in the first place is because other distributions using pacman might have different LTS policies, and because it would prevent expert users from being in control of their system, as per the traditional Unix philosophy: "Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." Consequences of performing partial updates without understanding the ramifications in extensive detail can include breaking the partially updated application (jq), breaking any application that shares a mutual dependency with the partially updated application (which jq is *lucky* to only depend on the ever-backwards-compatible glibc), or breaking the entire operating system by leaving armed traps behind for the next time a `pacman -S new-package` is executed and thereby breaks *its* cascading dependencies. See: https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported
2019-07-21 14:40:47 -04:00
repository. Install using `sudo pacman -S jq`.
2018-10-28 19:18:48 -04:00
* jq 1.6 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64)
2018-10-28 19:18:48 -04:00
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux32).
2018-10-28 19:18:48 -04:00
2015-08-15 23:12:31 -07:00
* jq 1.5 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64)
2015-08-15 23:12:31 -07:00
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux32).
2015-08-15 23:12:31 -07:00
* jq 1.4 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-linux-x86_64)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-linux-x86).
2015-08-07 21:40:19 -07:00
* jq 1.3 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-linux-x86_64)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-linux-x86).
### OS X
2021-12-26 17:18:03 -05:00
* Use [Fink](https://finkproject.org) to install jq 1.6 with
`fink install jq`.
2019-11-13 10:25:08 +01:00
* Use [Homebrew](http://brew.sh/) to install jq 1.6 with
2015-08-15 23:12:31 -07:00
`brew install jq`.
2012-10-23 14:46:44 +01:00
* Use [MacPorts](https://www.macports.org) to install jq 1.6 with
`port install jq`.
2018-10-28 19:18:48 -04:00
* jq 1.6 binary for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-osx-amd64).
2018-10-28 19:18:48 -04:00
2015-08-15 23:44:41 -07:00
* jq 1.5 binary for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-osx-amd64).
2015-08-15 23:44:41 -07:00
* jq 1.4 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-osx-x86_64)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-osx-x86).
2012-10-23 14:46:44 +01:00
* jq 1.3 binaries for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-osx-x86_64)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-osx-x86).
### FreeBSD
2018-10-21 23:11:37 -04:00
* `pkg install jq` as root installs a pre-built
[binary package](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pkgng-intro.html).
* `make -C /usr/ports/textproc/jq install clean` as root installs the
[jq](https://www.freshports.org/textproc/jq/)
[port](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html)
from source.
### Solaris
2015-08-15 12:07:00 -07:00
* `pkgutil -i jq` in [OpenCSW](https://www.opencsw.org/p/jq) for Solaris
2015-08-07 21:40:19 -07:00
10+, Sparc and x86.
2014-06-12 19:26:05 -05:00
* jq 1.4 binaries for Solaris 11
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-solaris11-64)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-solaris11-32).
2014-06-12 19:26:05 -05:00
### Windows
2023-06-06 05:52:09 +09:00
* Use [winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/)
to install jq 1.6 with `winget install jqlang.jq`.
2012-09-18 17:51:53 +01:00
* Use [`scoop`](https://scoop.sh/) to install latest jq version with
`scoop install jq`.
* Use [Chocolatey NuGet](https://chocolatey.org/) to install jq 1.6 with
2015-08-07 21:40:19 -07:00
`chocolatey install jq`.
2018-10-28 19:18:48 -04:00
* jq 1.6 executables for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-win64.exe)
2018-10-28 19:18:48 -04:00
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-win32.exe).
2018-10-28 19:18:48 -04:00
2015-08-15 23:12:31 -07:00
* jq 1.5 executables for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win64.exe)
2015-08-15 23:12:31 -07:00
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win32.exe).
2015-08-15 23:12:31 -07:00
* jq 1.4 executables for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-win64.exe)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.4/jq-win32.exe).
* jq 1.3 executables for
2023-05-28 17:06:31 +01:00
[64-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-win64.exe)
or
2023-05-28 17:06:31 +01:00
[32-bit](https://github.com/jqlang/jq/releases/download/jq-1.3/jq-win32.exe).
### Checksums and signatures
SHA-256 checksums are provided for all release and pre-release binaries.
They can be found under
2023-05-28 17:06:31 +01:00
[sig/v1.x/sha256sum.txt](https://github.com/jqlang/jq/tree/master/sig).
2018-10-28 19:18:48 -04:00
The checksums for jq 1.6 are in
2023-05-28 17:06:31 +01:00
[sig/v1.6/sha256sum.txt](https://raw.githubusercontent.com/jqlang/jq/master/sig/v1.6/sha256sum.txt).
The checksums for jq 1.5 are in
2023-05-28 17:06:31 +01:00
[sig/v1.5/sha256sum.txt](https://raw.githubusercontent.com/jqlang/jq/master/sig/v1.5/sha256sum.txt).
Additionally, all binaries are signed by the
2023-05-28 17:06:31 +01:00
[jq Package Signing Key](https://raw.githubusercontent.com/jqlang/jq/master/sig/jq-release.key).
The signatures can be found under
2023-05-28 17:06:31 +01:00
[sig/v1.x/\*.asc](https://github.com/jqlang/jq/tree/master/sig).
2018-10-28 19:18:48 -04:00
The signatures for jq 1.6 are in
2023-05-28 17:06:31 +01:00
[sig/v1.5/\*.asc](https://github.com/jqlang/jq/tree/master/sig/v1.6).
The signatures for jq 1.5 are in
2023-05-28 17:06:31 +01:00
[sig/v1.5/\*.asc](https://github.com/jqlang/jq/tree/master/sig/v1.5).
You can use [GnuPG](https://gnupg.org/) to verify a signature by downloading
the signature and running `gpg --verify signature.asc`.
### From source on Linux, OS X, Cygwin, and other POSIX-like operating systems
2023-05-28 17:06:31 +01:00
* [Source tarball for jq 1.6](https://github.com/jqlang/jq/releases/download/jq-1.6/jq-1.6.tar.gz)
* [Source tarball for jq 1.5](https://github.com/jqlang/jq/releases/download/jq-1.5/jq-1.5.tar.gz)
2013-05-19 10:48:25 +01:00
You can build it using the usual `./configure && make && sudo
make install` rigmarole.
If you're interested in using the lastest development version, try:
2023-05-28 17:06:31 +01:00
git clone --recursive https://github.com/jqlang/jq.git
cd jq
autoreconf -i
2015-08-15 23:12:31 -07:00
./configure --disable-maintainer-mode
2013-05-19 10:48:25 +01:00
make
sudo make install
2012-09-18 17:51:53 +01:00
To build it from a git clone, you'll need to install a few
packages first:
2015-08-15 12:07:00 -07:00
* [GCC](https://gcc.gnu.org)
* [Make](https://www.gnu.org/software/make/)
* [Autotools](https://www.gnu.org/software/automake/)
2012-09-18 17:51:53 +01:00
For Linux systems, these will all be in your system's package
manager, and if you do development on the machine they're most
2012-12-07 14:40:20 +00:00
likely already installed.
2012-09-18 17:51:53 +01:00
2015-08-07 21:40:19 -07:00
On OS X, these are all included in Apple's command line tools, which can
be installed from [Xcode](https://developer.apple.com/xcode/). However,
you may find that you need a newer version of Bison than the one provided
by Apple. This can be found in [Homebrew](http://brew.sh) or
2015-08-15 12:07:00 -07:00
[MacPorts](https://macports.org/).
2015-08-15 23:12:31 -07:00
The `--disable-maintainer-mode` flag says to use the pre-generated lexer
and parser that come with the code. To compile the lexer and parser also
from source, leave out this flag. You will need to install
[Flex](https://github.com/westes/flex) and
2015-08-15 23:12:31 -07:00
[Bison](https://www.gnu.org/software/bison/).
2015-08-13 22:33:37 -07:00
#### Building the documentation
2012-09-18 17:51:53 +01:00
jq's documentation is compiled into static HTML using Python.
To build the docs, run `pipenv run python3 build_website.py` from
the docs/ subdirectory. To serve them locally, you can run
`python3 -m SimpleHTTPServer`. You'll need a few Python dependencies,
which can be installed by following the instructions in `docs/README.md`.
The man page is built by `make jq.1`, or just `make`, also from
the YAML docs, and you'll still need the Python dependencies to
build the manpage.