# 使用 Homebrew, apk, chocolatey, apt, MacPorts, Nix, scoop, winget 安装 gallery-dl

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

## 安装

```sh
sudo av install brew:gallery-dl
```

## 代理安全回答

gallery-dl downloads media and may use cookies or credentials for private sources.

- **凭据访问:** Reads cookies, config files, netrc credentials, and output paths.
- **远程变更:** Primarily downloads, but can access authenticated services.
- **发布/制品风险:** Can create local archives of private or copyrighted media.
- **推荐控制:** Gate cookie reads, authenticated downloads, and broad output paths.
- **代理使用指南:** Allow public metadata checks; require approval for private downloads and credential use.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gallery-dl
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gallery-dl
```

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

### Linux

- apk (92%):

```sh
sudo apk add gallery-dl
```

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

- Debian apt (92%):

```sh
sudo apt install gallery-dl
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gallery-dl
```

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

### Windows

- Chocolatey (92%):

```sh
choco install gallery-dl
```

  证据: Chocolatey community package catalog: gallery-dl from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install main/gallery-dl
```

  证据: Scoop official bucket manifest trees: bucket/gallery-dl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id mikf.gallery-dl -e
```

  证据: Windows Package Manager source index: mikf.gallery-dl from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gallery-dl
- **软件包管理器:** Homebrew
- **版本:** 1.32.9
- **来源摘要:** Command-line downloader for image-hosting site galleries and collections
- **主页:** <https://codeberg.org/mikf/gallery-dl>
- **最后更新:** 2026-08-02T12:24:34Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gallery-dl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gallery-dl is a cross-platform command-line program for downloading image galleries and collections from many image-hosting and social sites. It is often treated as the image-gallery counterpart to video downloaders such as youtube-dl and yt-dlp.

### 项目历史

The GitHub repository was created in October 2014 and long served as the project's primary development home. The current README states that active development has moved to Codeberg, and the Codeberg repository metadata records a March 2026 creation date.

Upstream documents GPL-2.0 licensing, Python 3.8+ support, a large extractor/configuration surface, and frequent release artifacts. GitHub release metadata shows versioned releases continuing into 2026.

### 采用历史

gallery-dl has unusually broad package-manager adoption for a niche downloader. Upstream documents PyPI, standalone Windows/Linux executables, Snap, Chocolatey, Scoop, Homebrew, MacPorts, Docker, Nix, and Home Manager installation paths, while the supplied package facts also list apk, Debian, Ubuntu, winget, and other package-manager names.

The migration to Codeberg is significant for packagers because repository URLs, release tarballs, and development snapshots shifted away from GitHub while documentation and historical references still point to GitHub-hosted material.

### 使用方式

Users run gallery-dl with one or more URLs and command-line options. It can also be configured through JSON-style configuration files, with optional YAML/TOML support, site-specific extractor settings, output formatting, cookies, credentials, API keys, and cache handling.

The README documents optional integrations with yt-dlp or youtube-dl for HLS/DASH video downloads, FFmpeg and mkvmerge for Pixiv Ugoira handling, and other optional dependencies for proxies, compression, keyrings, PostgreSQL archives, trust stores, and templates.

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

gallery-dl is package-nerd significant because it is a constantly changing web-scraper/downloader packaged across many ecosystems. Maintainers have to track fast upstream releases, optional dependency behavior, changing site extractors, default config locations, credential storage in config files, and the GitHub-to-Codeberg source migration.

### 时间线

- 2014: GitHub repository created.
- 2020s: Upstream README documents installation through PyPI, standalone binaries, Snap, Chocolatey, Scoop, Homebrew, MacPorts, Docker, Nix, and Home Manager.
- 2026: Codeberg repository created and README states active development moved there.
- 2026: GitHub release metadata lists v1.32.5 published on June 30.

### Related projects

- yt-dlp and youtube-dl are optional integrations for HLS/DASH video downloads.
- FFmpeg and mkvmerge are optional helpers for Pixiv Ugoira conversion and timing.
- The project now spans Codeberg for active source development, GitHub for historical repository/docs references, and gdl-org.github.io for generated documentation.

### 来源

- <https://api.github.com/repos/mikf/gallery-dl>
- <https://api.github.com/repos/mikf/gallery-dl/releases?per_page=5>
- <https://codeberg.org/api/v1/repos/mikf/gallery-dl>
- <https://codeberg.org/mikf/gallery-dl>
- <https://github.com/mikf/gallery-dl>
- <https://raw.githubusercontent.com/mikf/gallery-dl/master/README.rst>
- <https://raw.githubusercontent.com/mikf/gallery-dl/master/docs/configuration.rst>
- <https://raw.githubusercontent.com/mikf/gallery-dl/master/docs/options.md>


## 安全说明

没有找到 gallery-dl 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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.


## Configuration files

- Unix: /etc/gallery-dl.conf, ${XDG_CONFIG_HOME}/gallery-dl/config.json, ${HOME}/.config/gallery-dl/config.json, ${HOME}/.gallery-dl.conf

## Credential files

- Unix: /etc/gallery-dl.conf, ${XDG_CONFIG_HOME}/gallery-dl/config.json, ${HOME}/.config/gallery-dl/config.json, ${HOME}/.gallery-dl.conf
## 其他软件包管理器记录

- Debian apt - gallery-dl - 1.29.7-1: normalized package name match | Debian stable package indexes: gallery-dl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line program to download image galleries | https://github.com/mikf/gallery-dl
- Nix - gallery-dl: normalized package name match | nixpkgs package indexes: pkgs/by-name/ga/gallery-dl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gallery-dl - 1.26.9-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gallery-dl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line program to download image galleries | https://github.com/mikf/gallery-dl
- apk - gallery-dl - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI tool to download image galleries | https://codeberg.org/mikf/gallery-dl
- apk - gallery-dl-bash-completion - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for gallery-dl | https://codeberg.org/mikf/gallery-dl
- apk - gallery-dl-doc - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CLI tool to download image galleries (documentation) | https://codeberg.org/mikf/gallery-dl
- apk - gallery-dl-fish-completion - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for gallery-dl | https://codeberg.org/mikf/gallery-dl
- apk - gallery-dl-pyc - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for gallery-dl | https://codeberg.org/mikf/gallery-dl
- apk - gallery-dl-zsh-completion - 1.32.9-r0: normalized package name match | Alpine Linux edge package indexes: gallery-dl-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for gallery-dl | https://codeberg.org/mikf/gallery-dl
- MacPorts - gallery-dl: normalized package name match | MacPorts ports tree: net/gallery-dl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - gallery-dl: normalized package name match | Chocolatey community package catalog: gallery-dl from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'
- Scoop - main/gallery-dl: normalized package name match | Scoop official bucket manifest trees: bucket/gallery-dl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - mikf.gallery-dl: normalized package name match | Windows Package Manager source index: mikf.gallery-dl from https://cdn.winget.microsoft.com/cache/source.msix
- winget - mikf.gallery-dl.Nightly: normalized package name match | Windows Package Manager source index: mikf.gallery-dl.Nightly from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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