xsel

Command line clipboard and X selection tool

Availability

Distro aarch64 noarch x86_64 Version
RHEL 10
RHEL 9
RHEL 8 1.2.0
RHEL 7
RHEL 6

Description

XSel is a command line or script utility, similar to xclip, that can copy the primary and secondary X selection, or any highlighted text, to or from a file, stdin or stdout. It can also append to and delete the clipboard or buffer that you would paste with the middle mouse button.

Compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

Install

CentOS/RHEL 8
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install xsel