# Install gallery-dl with Homebrew, apk, chocolatey, apt, MacPorts, Nix, scoop, winget

Command-line downloader for image-hosting site galleries and collections. Version 1.32.5 via Homebrew; verified 2026-07-01.

## Install

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

## Agent safety answer

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

- **Credential access:** Reads cookies, config files, netrc credentials, and output paths.
- **Remote mutation:** Primarily downloads, but can access authenticated services.
- **Publish/artifact risk:** Can create local archives of private or copyrighted media.
- **Recommended control:** Gate cookie reads, authenticated downloads, and broad output paths.
- **Agent-use guidance:** Allow public metadata checks; require approval for private downloads and credential use.

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:gallery-dl
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gallery-dl>
- **Version:** 1.32.5
- **Source summary:** Command-line downloader for image-hosting site galleries and collections
- **Homepage:** <https://github.com/mikf/gallery-dl>
- **Repository:** <https://github.com/mikf/gallery-dl>
- **Upstream docs:** <https://gdl-org.github.io/docs>
- **License:** GPL-2.0-only
- **Source archive:** <https://files.pythonhosted.org/packages/b5/d3/1183e8994b48af8850c7eadc3881490d8671a7fb7d044bb839f9b6d028d7/gallery_dl-1.32.5.tar.gz>
- **Last updated:** 2026-07-01T09:53:56Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gallery-dl (cli)
- gallery-dl (alias)

## Dependencies

- certifi
- cryptography
- libyaml
- python@3.14
- yt-dlp

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.32.5
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://github.com/mikf/gallery-dl
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for gallery-dl. Nucleus package metadata is still published here so future coverage has a stable package 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gallery-dl
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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.2-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.2-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.2-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.2-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.2-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.2-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','flow-launcher'
- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [yt-dlp](https://www.automicvault.com/pkg/brew/yt-dlp/) - Runtime dependency declared by Homebrew.
- [gamdl](https://www.automicvault.com/pkg/brew/gamdl/) - Shares av.db curated category or tags: cli, downloader, downloaders, media, python.
- [instaloader](https://www.automicvault.com/pkg/brew/instaloader/) - Shares av.db curated category or tags: cli, downloader, downloaders, media, python.
- [instalooter](https://www.automicvault.com/pkg/brew/instalooter/) - Shares av.db curated category or tags: cli, downloader, downloaders, media, python.
- [you-get](https://www.automicvault.com/pkg/brew/you-get/) - Shares av.db curated category or tags: cli, downloader, downloaders, media, python.
- [youtubedr](https://www.automicvault.com/pkg/brew/youtubedr/) - Shares av.db curated category or tags: cli, downloader, downloaders, media.
- [dash-mpd-cli](https://www.automicvault.com/pkg/brew/dash-mpd-cli/) - Shares av.db curated category or tags: cli, downloaders, media.
- [dezoomify-rs](https://www.automicvault.com/pkg/brew/dezoomify-rs/) - Shares av.db curated category or tags: cli, downloaders, media.

## Combined YAML source

View the package source record on GitHub. [combined/gallery-dl.yml](https://github.com/automic-vault/db/blob/main/combined/gallery-dl.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
