Automic VaultAutomic Vault

brew

xsel を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

xsel のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install xsel

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install xsel

MacPorts ports tree · x11/xsel/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add xsel

Alpine Linux edge package indexes · xsel · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install xsel

Debian stable package indexes · xsel · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install xsel

Fedora Rawhide package metadata · xsel · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#xsel

nixpkgs package indexes · pkgs/by-name/xs/xsel/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S xsel

Arch Linux sync databases · xsel · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install xsel

openSUSE Tumbleweed package metadata · xsel · ソース: download.opensuse.org

概要

パッケージ概要

Command-line program for getting and setting the contents of the X selection

履歴

プロジェクトの歴史と使われ方

xsel is Conrad Parker's command-line utility for reading and setting X selections. It turns PRIMARY, SECONDARY, and CLIPBOARD selection ownership into a pipe-friendly Unix interface, making X11 copy/paste state usable from shell scripts and terminal workflows.

プロジェクトの歴史

The xsel manpage identifies Conrad Parker as author and dates the program to July 2001, while the license file carries a 2001 copyright. Its homepage presents the core problem plainly: the X selection is normally accessible by manually highlighting text and pasting with the middle mouse button, while xsel lets files, pipes, and scripts participate.

The project developed around X11's ICCCM selection model. The manpage notes that there is no X selection buffer: xsel must own the selection and serve it on demand, often by forking a background process in input, keep, and exchange modes.

採用の歴史

xsel became a standard small X11 utility because it solved a daily terminal-desktop gap. The homepage says it is available in most distributions, and package metadata shows it in Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE ecosystems.

Its closest cultural sibling is `xclip`; both became staples in scripts that move text between command output, terminal multiplexers, editors, browsers, and the X clipboard. xsel's options for append, follow, keep, exchange, and secondary selection make it especially explicit about the underlying X selection machinery.

使われ方

Common usage is `command | xsel -b` to put text on the CLIPBOARD selection, `xsel -b -o` to print clipboard contents, `xsel < file` to own the PRIMARY selection with file contents, and `xsel > file` to save the current selection exactly.

The manpage documents PRIMARY as the default, with `--secondary` and `--clipboard` selecting the other X selections. Because X selection contents are served by the owner, xsel may detach in modes where it must keep supplying data after the shell command exits.

パッケージ好きにとっての重要性

xsel is tiny, but it teaches a core X11 lesson: clipboard-like behavior is inter-client communication, not simply a global text buffer. Packaging it gives shell users a reliable bridge into that model.

It is also one of those utilities whose value increases in combinations: SSH sessions with X forwarding, terminal multiplexers, editors, scripts, password managers, build logs, and bug-report commands all benefit from being able to pipe text into or out of the X selection.

タイムライン

  • 2001-07: The xsel manpage dates Conrad Parker's authorship to July 2001.
  • 2001: The license file records Conrad Parker copyright for xsel.
  • 2008-01: The distributed manpage is dated January 2008.
  • 2009: The homepage lists version 1.2.0 as the latest available tarball.
  • 2020s: xsel remains packaged across Linux, BSD, macOS package-manager, and X11 compatibility environments.

Related projects

  • xclip is the closest alternative command-line X clipboard/selection utility.
  • xclipboard is the classic X clipboard manager referenced by the xsel manpage.
  • ICCCM defines the X selection conventions xsel follows.
  • Wayland-native clipboard tools such as wl-clipboard fill the equivalent niche outside X11.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 12 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 5 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
xselcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-08
マネージャ版1.2.1
マネージャ更新日2026-05-25
ローカルデータOK
上流最新
検出された最新1.2.1

https://github.com/kfish/xsel

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:xsel
バージョン1.2.1
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/xsel
ホームページhttps://www.vergenet.net/~conrad/software/xsel/
リポジトリhttps://github.com/kfish/xsel
上流ドキュメントhttps://www.vergenet.net/~conrad/software/xsel
ライセンスHPND-sell-variant
ソースアーカイブhttps://github.com/kfish/xsel/archive/refs/tags/1.2.1.tar.gz
最終更新2026-05-25T14:39:17-04:00
Pulseupdated
依存関係libx11
ビルド依存関係autoconf, automake, libtool, libxt, pkgconf
Bottle利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexsel
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

xsel 1.2.1-1

command-line tool to access X clipboard and selection buffers

http://www.vergenet.net/~conrad/software/xsel/

sudo apt install xsel
  • Section: x11
  • Architecture: amd64
  • 2 依存関係
  • normalized package name match
  • 一致条件: Xsel
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xsel from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

xsel

nix profile install nixpkgs#xsel
  • normalized package name match
  • 一致条件: Xsel
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xs/xsel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

xsel 1.2.1-1

command-line tool to access X clipboard and selection buffers

http://www.vergenet.net/~conrad/software/xsel/

sudo apt install xsel
  • Section: universe/x11
  • Architecture: amd64
  • 2 依存関係
  • normalized package name match
  • 一致条件: Xsel
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: xsel from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

xsel 1.2.1-r0

Command-line program for manipulating the X selection

http://www.vergenet.net/~conrad/software/xsel

sudo apk add xsel
  • License: MIT
  • Architecture: x86_64
  • Source Package: xsel
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xsel
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xsel from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

xsel-doc 1.2.1-r0

Command-line program for manipulating the X selection (documentation)

http://www.vergenet.net/~conrad/software/xsel

sudo apk add xsel-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: xsel
  • normalized package name match
  • 一致条件: Xsel
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xsel-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

xsel 1.2.1-10.fc44

Command line clipboard and X selection tool

https://www.vergenet.net/~conrad/software/xsel/

sudo dnf install xsel
  • License: HPND-sell-variant
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xsel
  • 3 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xsel
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xsel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

xsel 1.2.1-2

Command-line program for getting and setting the contents of the X selection

https://vergenet.net/~conrad/software/xsel/

sudo pacman -S xsel
  • License: custom
  • Architecture: x86_64
  • 1 依存関係
  • normalized package name match
  • 一致条件: Xsel
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: xsel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

xsel 1.2.1-1.6

Command-line Program for Getting and Setting the Contents of the X Selection

http://www.kfish.org/software/xsel/

sudo zypper install xsel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xsel
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Xsel
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: xsel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

xsel

sudo port install xsel
  • normalized package name match
  • 一致条件: Xsel
MacPorts ports tree · api.github.com · MacPorts ports tree: x11/xsel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment