macOS
brew install yanklocal Homebrew formula metadata
sudo port install yankMacPorts ports tree · sysutils/yank/Portfile · source: api.github.com
brew
Copy terminal output to clipboard. Version 1.3.0 via Homebrew; verified from local package data.
install
brew install yanklocal Homebrew formula metadata
sudo port install yankMacPorts ports tree · sysutils/yank/Portfile · source: api.github.com
sudo apk add yankAlpine Linux edge package indexes · yank · source: dl-cdn.alpinelinux.org
sudo apt install yankDebian stable package indexes · yank · source: deb.debian.org
sudo dnf install yankFedora Rawhide package metadata · yank · source: dl.fedoraproject.org
nix profile install nixpkgs#yanknixpkgs package indexes · pkgs/by-name/ya/yank/package.nix · source: api.github.com
sudo pacman -S yankArch Linux sync databases · yank · source: geo.mirror.pkgbuild.com
sudo zypper install yankopenSUSE Tumbleweed package metadata · yank · source: download.opensuse.org
winget install --id nasiridrishi.Yank -eWindows Package Manager source index · nasiridrishi.Yank · source: cdn.winget.microsoft.com
overview
Copy terminal output to clipboard
history
yank is a small C terminal utility for selecting fields from command output and copying the selection to a clipboard command. It reads from stdin, presents a keyboard-driven selection interface, and writes the chosen field to a yank command such as xsel or pbcopy.
The GitHub repository was created on 2015-08-24. The README frames the project around a terminal-user frustration: copying output with the mouse feels like a cache miss, while terminal multiplexer copy modes are not always available or desired.
The design stayed terminal-agnostic. yank recognizes fields either by regular expression with `-g` or by delimiter with `-d`, supports line selection with `-l`, and lets users replace the default clipboard command by passing a command after `--`.
yank has the kind of packaging spread typical of beloved Unix conveniences. The README documents installation through Arch Linux, Debian, Fedora, Nix/NixOS, openSUSE, Homebrew, MacPorts, FreeBSD, OpenBSD, and source builds. The supplied package data also shows broad distribution coverage.
Some Linux distributions install the binary as `yank-cli` because of a naming conflict, an adoption detail that matters to users searching for the command after installing the package.
Common examples include `env | yank -d =` to select an environment variable key or value, `yank -d ", <file.csv` for CSV fields, `make 2>&1 | yank -l` for whole-line selection, and `ps ux | yank -g [0-9]+ | xargs kill` when stdout is not a terminal.
On X11 the default command is xsel. macOS users can build with `YANKCMD=pbcopy`, and the README also mentions shcopy for copying over SSH or from headless environments.
yank is package-nerd significant because it solves a tiny but common shell workflow problem in the Unix way: compose stdin, regex/delimiter selection, stdout fallback, and pluggable clipboard commands.
It also demonstrates why package names and binary names matter: the same tool may be installed as `yank` or `yank-cli` depending on distribution conflicts, which is exactly the sort of detail package catalogs help users untangle.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
yank | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:yank |
|---|---|
| Version | 1.3.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/yank |
| Homepage | https://github.com/mptre/yank |
| Repository | https://github.com/mptre/yank |
| Upstream docs | https://github.com/mptre/yank#readme |
| License | MIT |
| Source archive | https://github.com/mptre/yank/archive/refs/tags/v1.3.0.tar.gz |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | yank |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
yank 1.3.0-1
interactively select and yank terminal output to stdout or xsel
sudo apt install yankyank
nix profile install nixpkgs#yankyank 1.3.0-1
interactively select and yank terminal output to stdout or xsel
sudo apt install yankyank 1.3.0-r0
Yank terminal output to clipboard
sudo apk add yankyank-doc 1.3.0-r0
Yank terminal output to clipboard (documentation)
sudo apk add yank-docyank 1.3.0-9.fc44
Tool for selecting and copying text from stdin without a mouse
sudo dnf install yankyank 1.3.0-2
Copy terminal output to clipboard
sudo pacman -S yankyank 1.3.0-1.10
Tool for selecting and copying text from stdin without a mouse
sudo zypper install yankyank
sudo port install yanknasiridrishi.Yank
winget install --id nasiridrishi.Yank -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.