# 使用 Homebrew, apt, Nix, pacman 安装 gist

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

## 安装

```sh
sudo av install brew:gist
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gist
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install gist
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gist
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/gist/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gist
```

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

## 软件包事实

- **软件包键:** brew:gist
- **软件包管理器:** Homebrew
- **版本:** 6.1.0
- **来源摘要:** Command-line utility for uploading Gists
- **主页:** <https://defunkt.io/gist/>
- **仓库:** <https://github.com/defunkt/gist>
- **最后更新:** 2026-06-19T22:35:16Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gist (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gist is a Ruby command-line client and library for uploading files or standard input to GitHub Gist. It is one of the older developer-shell bridges between local code snippets and GitHub's paste-sharing service.

### 项目历史

The repository was opened in October 2008 by Chris Wanstrath, and RubyGems records 1.0.0 in February 2010. The README credits defunkt and indirect for versions 1 through 3, then rking and Conrad Irwin for version 4, showing a maintainer handoff pattern typical of long-lived GitHub-era command-line tools.

The tool grew from simple snippet upload into a broader Gist client: it can upload multiple files, read from standard input, paste from the clipboard, create private gists, update existing gists, open or copy resulting URLs, list and read gists, and act as a Ruby library.

### 采用历史

gist's adoption follows GitHub Gist's role as a lightweight code-sharing surface. The README documents installation through RubyGems, Bundler, Homebrew, FreeBSD ports, and Debian or Ubuntu packages, while RubyGems download counts show multi-million-install scale through the gem channel.

### 使用方式

Practitioners pipe command output into gist, upload one or more files, attach descriptions, request private gists, copy the resulting URL, or use the library API inside Ruby programs. Authentication evolved from username/password token exchange toward GitHub's device-code OAuth flow, with tokens stored in ~/.gist or per-enterprise token files.

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

gist is significant because it made GitHub's pastebin-like service feel native to the Unix pipeline. For package maintainers, it also carries the history of API authentication changes, GitHub Enterprise support, and binary-name conflict handling in distributions such as Debian.

### 时间线

- 2008: The repository began on GitHub.
- 2010: RubyGems records the 1.0.0 release.
- 2015: 4.5.0 shipped during the maintained version-4 line.
- 2020: 6.0.0 appeared after the version-5 series.
- 2026: 6.1.0 was published on RubyGems.

### Related projects

- gist sits beside GitHub Gist itself, GitHub Enterprise, RubyGems packaging, Homebrew packaging, and distro-packaged command-line paste clients.

### 来源

- <https://github.com/defunkt/gist>
- <https://github.com/defunkt/gist/blob/master/README.md>
- <https://rubygems.org/api/v1/gems/gist.json>
- <https://rubygems.org/api/v1/versions/gist.json>
- <https://rubygems.org/gems/gist>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool 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: ~/.gist, ~/.gist.<protocol>.<server.name>[.<port>]
## 其他软件包管理器记录

- Debian apt - gist - 6.0.0-3: normalized package name match | Debian stable package indexes: gist from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Upload gists to gist.github.com | https://github.com/defunkt/gist
- Nix - gist: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gist/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gist - 6.0.0-3: normalized package name match | Ubuntu 24.04 LTS package indexes: gist from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Upload gists to gist.github.com | https://github.com/defunkt/gist
- pacman - gist - 6.1.0-1: normalized package name match | Arch Linux sync databases: gist from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Potentially the best command line gister | https://github.com/defunkt/gist


## Combined YAML source

View the package source record on GitHub. [combined/gist.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gist.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
