# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 httpie

查看 httpie 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:httpie
```

## 代理安全回答

httpie sends HTTP requests and can call authenticated APIs from local credentials.

- **凭据访问:** Reads tokens, headers, cookies, netrc-style credentials, and request body files.
- **远程变更:** Can call arbitrary APIs that mutate remote systems.
- **发布/制品风险:** Can upload files or trigger deployment APIs.
- **推荐控制:** Gate authenticated requests, file uploads, and destructive HTTP methods.
- **代理使用指南:** Allow public GETs; require approval for credentialed requests, uploads, POST, PUT, PATCH, and DELETE.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install httpie
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install httpie
```

  证据: MacPorts ports tree: net/httpie/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add httpie
```

  证据: Alpine Linux edge package indexes: httpie from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install httpie
```

  证据: Debian stable package indexes: httpie from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install httpie
```

  证据: Fedora Rawhide package metadata: httpie from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#httpie
```

  证据: nixpkgs package indexes: httpie from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S httpie
```

  证据: Arch Linux sync databases: httpie from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install httpie
```

  证据: openSUSE Tumbleweed package metadata: httpie from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install httpie
```

  证据: Chocolatey community package catalog: httpie from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'

- winget (92%):

```sh
winget install --id HTTPie.HTTPie -e
```

  证据: Windows Package Manager source index: HTTPie.HTTPie from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:httpie
- **软件包管理器:** Homebrew
- **版本:** 3.2.4
- **来源摘要:** User-friendly cURL replacement (command-line HTTP client)
- **主页:** <https://httpie.io/>
- **仓库:** <https://github.com/httpie/cli>
- **最后更新:** 2026-07-15T11:11:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- http (别名)
- httpie (别名)
- https (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.2.4
## 项目历史与用法

HTTPie is a human-friendly command-line HTTP client for testing, debugging, and interacting with APIs and HTTP servers.

### 项目历史

HTTPie was first published on February 25, 2012. Jakub Roztocil's project post describes it as the result of scratching an API testing itch, and the GitHub repository metadata shows the public repository was created the same day.

The project differentiated itself from older HTTP clients with natural command syntax, formatted and colorized output, default JSON ergonomics, persistent sessions, downloads, authentication helpers, and plugin support. The PyPI release history records the first package upload as version 0.1 on February 25, 2012.

### 采用历史

HTTPie grew through GitHub, PyPI, and operating-system package managers. Its own 2022 writeup says the project built a 54,000-star GitHub community over its first decade before an accidental repository visibility change deleted watchers and stars, after which the community rebuilt a large visible presence around the new `httpie/cli` repository state.

### 使用方式

The CLI exposes `http` and `https` commands for sending arbitrary requests. Common package-level use cases include API exploration, JSON POST and PUT requests, scripted smoke tests, file uploads, redirects, sessions stored under the HTTPie config directory, and readable terminal output during debugging.

### 为什么软件包爱好者会关心

HTTPie matters in package culture because it made the API-client experience feel native to the terminal without requiring users to memorize curl's denser flag vocabulary. It also became a standard example of a Python CLI that crossed into every major package ecosystem.

### 时间线

- 2012: First public release and GitHub repository creation on February 25.
- 2012: PyPI version 0.1 was uploaded on February 25.
- 2022: HTTPie published its account of losing a decade of GitHub stars and watchers.
- 2022: The project described HTTPie for Terminal as part of a broader Web and Desktop API platform effort.

### Related projects

- Related tools include curl, wget, Postman, Insomnia, REST Client-style editor plugins, and Python's Requests ecosystem.

### 来源

- <https://api.github.com/repos/httpie/cli>
- <https://github.com/httpie/cli>
- <https://httpie.io/blog/stardust>
- <https://httpie.io/docs/cli>
- <https://pypi.org/pypi/httpie/json>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: $XDG_CONFIG_HOME/httpie/sessions, ~/.config/httpie/sessions, ~/.httpie/sessions
## 其他软件包管理器记录

- Debian apt - httpie - 3.2.4-3: normalized package name match | Debian stable package indexes: httpie from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI, cURL-like tool for humans | https://httpie.io
- Nix - httpie: normalized package name match | nixpkgs package indexes: httpie from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - httpie - 3.2.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: httpie from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI, cURL-like tool for humans | https://httpie.io
- apk - httpie - 3.2.4-r2: normalized package name match | Alpine Linux edge package indexes: httpie from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI, cURL-like tool | https://httpie.org/
- apk - httpie-doc - 3.2.4-r2: normalized package name match | Alpine Linux edge package indexes: httpie-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI, cURL-like tool (documentation) | https://httpie.org/
- apk - httpie-pyc - 3.2.4-r2: normalized package name match | Alpine Linux edge package indexes: httpie-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for httpie | https://httpie.org/
- dnf - httpie - 3.2.4-14.fc45: normalized package name match | Fedora Rawhide package metadata: httpie from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A Curl-like tool for humans | https://httpie.org/
- pacman - httpie - 3.2.4-2: normalized package name match | Arch Linux sync databases: httpie from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | human-friendly CLI HTTP client for the API era | https://github.com/httpie/cli
- zypper - httpie - 3.2.4-5.3: normalized package name match | openSUSE Tumbleweed package metadata: httpie from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI, cURL-like tool for humans | https://httpie.org/
- MacPorts - httpie: normalized package name match | MacPorts ports tree: net/httpie/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - httpie: normalized package name match | Chocolatey community package catalog: httpie from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'
- winget - HTTPie.HTTPie: normalized package name match | Windows Package Manager source index: HTTPie.HTTPie from https://cdn.winget.microsoft.com/cache/source.msix
- winget - UnicornSoft.UnicornHTTPS: installed executable or alias match | Windows Package Manager source index: UnicornSoft.UnicornHTTPS from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/httpie.yml](https://github.com/mxcl/pkgdb/blob/main/combined/httpie.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
