# Install youtubedr with Homebrew, Nix

Download Youtube Video in Golang. Version 2.10.6 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#youtubedr.

## Install

```sh
sudo av install brew:youtubedr
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install youtubedr
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#youtubedr
```

  Evidence: nixpkgs package indexes: pkgs/by-name/yo/youtubedr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:youtubedr
- **Package manager:** Homebrew
- **Version:** 2.10.6
- **Source summary:** Download Youtube Video in Golang
- **Homepage:** <https://github.com/kkdai/youtube>
- **Repository:** <https://github.com/kkdai/youtube>
- **Last updated:** 2026-07-25T21:32:49+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- youtubedr (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.10.6
## Project history and usage

youtubedr is the command-line program from kkdai/youtube, a Go package for downloading YouTube videos. It is intentionally narrower than youtube-dl-style tools: the README points users to youtube-dl for broader download options.

### Project history

The public repository was created in December 2015 as a Go implementation for discovering and downloading YouTube streams. Its README documents both binary use through `youtubedr` and library use from Go programs, with examples for getting stream information and downloading by URL, video ID, quality, or itag.

The README also explains the scraper mechanics at a high level: parse the video ID, fetch video information, decode stream data, and download from the extracted URL. That makes the project useful as both a CLI and a learning/reference implementation for Go developers interested in YouTube download internals.

### Adoption history

Adoption appears modest compared with Python media downloaders, but meaningful inside the Go ecosystem. The module is documented on pkg.go.dev, packaged by Homebrew and Termux, and has several thousand GitHub stars according to metadata collected in July 2026.

### How it is used

Users install the binary, then run `youtubedr info URL` to inspect available streams or `youtubedr download URL` to save a video. The README documents output naming, destination directories, quality selection, itag selection, and ffmpeg use for high-resolution combinations.

Go developers can import the package directly when they need YouTube stream discovery in their own programs, though the README explicitly frames the tool for CC0-licensed content and discourages illegal use.

### Why package nerds care

youtubedr matters as a small Go-native counterpart to larger Python downloaders. It is packageable as a static-ish CLI, importable as a Go module, and a reminder that site-specific media downloaders are often both tools and living protocol notes.

### Timeline

- 2015-12-15: The public kkdai/youtube GitHub repository is created.
- Late 2010s: The project is documented as both a Go package and the `youtubedr` command.
- 2020s: Homebrew and Termux package the command for easier CLI installation.

### Related projects

- youtube-dl and yt-dlp are broader media downloaders referenced by the project for more download options.
- FFmpeg is needed for some high-resolution download combinations.
- iawia002/annie, later known as Lux, is listed among inspirations in the README.

### Sources

- <https://api.github.com/repos/kkdai/youtube>
- <https://formulae.brew.sh/formula/youtubedr>
- <https://github.com/kkdai/youtube>
- <https://pkg.go.dev/github.com/kkdai/youtube/v2>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- Nix - youtubedr: normalized package name match | nixpkgs package indexes: pkgs/by-name/yo/youtubedr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
