Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 xsel

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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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