1# Database of HTTPie installation methods. Used to build the docs.
2#
3# We currently only include here methods for popular systems where we take care of the package,
4# or have a good relationship with the maintainers.
5#
6# Each tool name should be unique (it becomes a linkable header).
7# If a tools have `links.setup`, it also needs `links.homepage`.
8# Some tools are available on multiple platforms, take into account when editing.
9#
10
11docs-structure:
12  Universal:
13    - pypi
14  macOS:
15    - brew-mac
16    - port
17    - spack-mac
18  Windows:
19    - chocolatey
20  Linux:
21    - snap-linux
22    - brew-linux
23    - apt
24    - dnf
25    - yum
26    - apk
27    - emerge
28    - pacman
29    - xbps-install
30    - spack-linux
31  FreeBSD:
32    - pkg
33
34tools:
35  apk:
36    title: Alpine Linux
37    name: apk
38    links:
39      homepage: https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management
40      package: https://pkgs.alpinelinux.org/package/edge/community/x86/httpie
41    commands:
42      install:
43        - apk update
44        - apk add httpie
45      upgrade:
46        - apk update
47        - apk add --upgrade httpie
48
49  apt:
50    title: Debian and Ubuntu
51    note: Also works for other Debian-derived distributions like MX Linux, Linux Mint, deepin, Pop!_OS, KDE neon, Zorin OS, elementary OS, Kubuntu, Devuan, Linux Lite, Peppermint OS, Lubuntu, antiX, Xubuntu, etc.
52    name: APT
53    links:
54      homepage: https://en.wikipedia.org/wiki/APT_(software)
55      package: https://packages.debian.org/sid/web/httpie
56    commands:
57      install:
58        - apt update
59        - apt install httpie
60      upgrade:
61        - apt update
62        - apt upgrade httpie
63
64  brew-mac:
65    title: Homebrew
66    name: Homebrew
67    links:
68      homepage: https://brew.sh/
69      setup: https://docs.brew.sh/Installation
70      package: https://formulae.brew.sh/formula/httpie
71    commands:
72      install:
73        - brew update
74        - brew install httpie
75      upgrade:
76        - brew update
77        - brew upgrade httpie
78
79  brew-linux:
80    title: Linuxbrew
81    name: Linuxbrew
82    links:
83      homepage: https://docs.brew.sh/Homebrew-on-Linux
84      setup: https://docs.brew.sh/Homebrew-on-Linux#install
85      package: https://formulae.brew.sh/formula/httpie
86    commands:
87      install:
88        - brew update
89        - brew install httpie
90      upgrade:
91        - brew update
92        - brew upgrade httpie
93
94  chocolatey:
95    title: Chocolatey
96    name: Chocolatey
97    links:
98      homepage: https://chocolatey.org/
99      setup: https://chocolatey.org/install
100      package: https://community.chocolatey.org/packages/httpie/
101    commands:
102      install:
103        - choco install httpie
104      upgrade:
105        - choco upgrade httpie
106
107  dnf:
108    title: Fedora
109    name: DNF
110    links:
111      homepage: https://fedoraproject.org/wiki/DNF
112      package: https://src.fedoraproject.org/rpms/httpie
113    commands:
114      install:
115        - dnf update
116        - dnf install httpie
117      upgrade:
118        - dnf update
119        - dnf upgrade httpie
120
121  emerge:
122    title: Gentoo
123    name: Portage
124    links:
125      homepage: https://wiki.gentoo.org/wiki/Portage
126      package: https://packages.gentoo.org/packages/net-misc/httpie
127    commands:
128      install:
129        - emerge --sync
130        - emerge httpie
131      upgrade:
132        - emerge --sync
133        - emerge --update httpie
134
135  pacman:
136    title: Arch Linux
137    name: pacman
138    note: Also works for other Arch-derived distributions like ArcoLinux, EndeavourOS, Artix Linux, etc.
139    links:
140      homepage: https://archlinux.org/pacman/
141      package: https://archlinux.org/packages/community/any/httpie/
142    commands:
143      install:
144        - pacman -Sy httpie
145      upgrade:
146        - pacman -Syu httpie
147
148  pkg:
149    title: FreshPorts
150    name: FreshPorts
151    links:
152      homepage: https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&n=1
153      package: https://www.freshports.org/www/py-httpie/
154    commands:
155      install:
156        - pkg install www/py-httpie
157      upgrade:
158        - pkg upgrade www/py-httpie
159
160  port:
161    title: MacPorts
162    name: MacPorts
163    links:
164      homepage: https://www.macports.org/
165      setup: https://www.macports.org/install.php
166      package: https://ports.macports.org/port/httpie/
167    commands:
168      install:
169        - port selfupdate
170        - port install httpie
171      upgrade:
172        - port selfupdate
173        - port upgrade httpie
174
175  pypi:
176    title: PyPi
177    name: pip
178    note: Please make sure you have Python 3.6 or newer (`python --version`).
179    links:
180      homepage: https://pypi.org/
181      # setup: https://pip.pypa.io/en/stable/installation/
182      package: https://pypi.org/project/httpie/
183    commands:
184      install:
185        - python -m pip install --upgrade pip wheel
186        - python -m pip install httpie
187      upgrade:
188        - python -m pip install --upgrade pip wheel
189        - python -m pip install --upgrade httpie
190
191  snap-linux:
192    title: Snapcraft (Linux)
193    name: Snapcraft
194    links:
195      homepage: https://snapcraft.io/
196      setup: https://snapcraft.io/docs/installing-snapd
197      package: https://snapcraft.io/httpie
198    commands:
199      install:
200        - snap install httpie
201      upgrade:
202        - snap refresh httpie
203
204  spack-linux:
205    title: Spack (Linux)
206    name: Spack
207    links:
208      homepage: https://spack.readthedocs.io/en/latest/index.html
209      setup: https://spack.readthedocs.io/en/latest/getting_started.html#installation
210    commands:
211      install:
212        - spack install httpie
213      upgrade:
214        - spack install httpie
215
216  spack-mac:
217    title: Spack (macOS)
218    name: Spack
219    links:
220      homepage: https://spack.readthedocs.io/en/latest/index.html
221      setup: https://spack.readthedocs.io/en/latest/getting_started.html#installation
222    commands:
223      install:
224        - spack install httpie
225      upgrade:
226        - spack install httpie
227
228  xbps-install:
229    title: Void Linux
230    name: XBPS
231    links:
232      homepage: https://docs.voidlinux.org/xbps/index.html
233    commands:
234      install:
235        - xbps-install -Su
236        - xbps-install -S httpie
237      upgrade:
238        - xbps-install -Su
239        - xbps-install -Su httpie
240
241  yum:
242    title: CentOS and RHEL
243    name: Yum
244    note: Also works for other RHEL-derived distributions like ClearOS, Oracle Linux, etc.
245    links:
246      homepage: http://yum.baseurl.org/
247      package: https://src.fedoraproject.org/rpms/httpie
248    commands:
249      install:
250        - yum update
251        - yum install epel-release
252        - yum install httpie
253      upgrade:
254        - yum update
255        - yum upgrade httpie
256