2021-10-06 11:18:27 +02:00
# Database of HTTPie installation methods. Used to build the docs.
#
# We currently only include here methods for popular systems where we take care of the package,
# or have a good relationship with the maintainers.
#
# Each tool name should be unique (it becomes a linkable header).
# If a tools have `links.setup`, it also needs `links.homepage`.
# Some tools are available on multiple platforms, take into account when editing.
#
docs-structure :
Universal :
- pypi
macOS :
- brew-mac
- port
Windows :
- chocolatey
Linux :
- apt
- dnf
- yum
2022-05-09 08:01:59 +02:00
- single-binary
2022-06-07 14:23:52 +02:00
- snap-linux
- brew-linux
- pacman
2021-10-06 11:18:27 +02:00
FreeBSD :
- pkg
tools :
apt :
title : Debian and Ubuntu
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.
name : APT
links :
homepage : https://en.wikipedia.org/wiki/APT_(software)
package : https://packages.debian.org/sid/web/httpie
commands :
install :
2023-05-22 18:50:25 +02:00
- curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg
# - curl -SsL -o /etc/apt/sources.list.d/httpie.list https://packages.httpie.io/deb/httpie.list
2024-03-04 15:34:57 +01:00
- echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" | sudo tee /etc/apt/sources.list.d/httpie.list > /dev/null
2023-05-22 18:50:25 +02:00
- sudo apt update
- sudo apt install httpie
2021-10-06 11:18:27 +02:00
upgrade :
2023-05-22 18:50:25 +02:00
- sudo apt update && sudo apt upgrade httpie
2021-10-06 11:18:27 +02:00
brew-mac :
title : Homebrew
name : Homebrew
links :
homepage : https://brew.sh/
setup : https://docs.brew.sh/Installation
package : https://formulae.brew.sh/formula/httpie
commands :
install :
- brew update
- brew install httpie
upgrade :
- brew update
- brew upgrade httpie
brew-linux :
title : Linuxbrew
name : Linuxbrew
links :
homepage : https://docs.brew.sh/Homebrew-on-Linux
setup : https://docs.brew.sh/Homebrew-on-Linux#install
package : https://formulae.brew.sh/formula/httpie
commands :
install :
- brew update
- brew install httpie
upgrade :
- brew update
- brew upgrade httpie
chocolatey :
title : Chocolatey
name : Chocolatey
links :
homepage : https://chocolatey.org/
setup : https://chocolatey.org/install
package : https://community.chocolatey.org/packages/httpie/
commands :
install :
- choco install httpie
upgrade :
- choco upgrade httpie
dnf :
title : Fedora
name : DNF
links :
homepage : https://fedoraproject.org/wiki/DNF
package : https://src.fedoraproject.org/rpms/httpie
commands :
install :
- dnf install httpie
upgrade :
- dnf upgrade httpie
pacman :
title : Arch Linux
name : pacman
note : Also works for other Arch-derived distributions like ArcoLinux, EndeavourOS, Artix Linux, etc.
links :
homepage : https://archlinux.org/pacman/
package : https://archlinux.org/packages/community/any/httpie/
commands :
install :
- pacman -Syu httpie
2022-02-28 22:57:23 +01:00
upgrade :
- pacman -Syu
2021-10-06 11:18:27 +02:00
pkg :
title : FreshPorts
name : FreshPorts
links :
homepage : https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&n=1
package : https://www.freshports.org/www/py-httpie/
commands :
install :
- pkg install www/py-httpie
upgrade :
- pkg upgrade www/py-httpie
port :
title : MacPorts
name : MacPorts
links :
homepage : https://www.macports.org/
setup : https://www.macports.org/install.php
package : https://ports.macports.org/port/httpie/
commands :
install :
- port selfupdate
- port install httpie
upgrade :
- port selfupdate
- port upgrade httpie
pypi :
2021-11-25 23:06:34 +01:00
title : PyPI
2021-10-06 11:18:27 +02:00
name : pip
2022-01-14 17:49:05 +01:00
note : Please make sure you have Python 3.7 or newer (`python --version`).
2021-10-06 11:18:27 +02:00
links :
homepage : https://pypi.org/
# setup: https://pip.pypa.io/en/stable/installation/
package : https://pypi.org/project/httpie/
commands :
install :
- python -m pip install --upgrade pip wheel
- python -m pip install httpie
upgrade :
- python -m pip install --upgrade pip wheel
- python -m pip install --upgrade httpie
snap-linux :
title : Snapcraft (Linux)
name : Snapcraft
links :
homepage : https://snapcraft.io/
setup : https://snapcraft.io/docs/installing-snapd
package : https://snapcraft.io/httpie
commands :
install :
- snap install httpie
upgrade :
- snap refresh httpie
yum :
title : CentOS and RHEL
name : Yum
note : Also works for other RHEL-derived distributions like ClearOS, Oracle Linux, etc.
links :
homepage : http://yum.baseurl.org/
package : https://src.fedoraproject.org/rpms/httpie
commands :
install :
- yum install epel-release
- yum install httpie
upgrade :
- yum upgrade httpie
2022-05-09 08:01:59 +02:00
single-binary :
2022-05-09 18:22:20 +02:00
title : Single binary executables
name : Single binary executables
2022-05-10 18:55:31 +02:00
note : Get the standalone HTTPie Linux executables when you don't want to go through the full installation process.
2022-05-09 08:01:59 +02:00
links :
commands :
install :
- https --download packages.httpie.io/binaries/linux/http-latest -o http
2022-06-07 14:23:52 +02:00
- ln -ls ./http ./https
- chmod +x ./http ./https
2022-05-09 08:01:59 +02:00
upgrade :
- https --download packages.httpie.io/binaries/linux/http-latest -o http