How To Install xclip on Fedora 34

xclip is Command line clipboard grabber

Introduction

In this tutorial we learn how to install xclip on Fedora 34.

What is xclip

xclip is a command line utility that is designed to run on any system with an X11 implementation. It provides an interface to X selections (“the clipboard”) from the command line. It can read data from standard in or a file and place it in an X selection for pasting into other X applications. xclip can also print an X selection to standard out, which can then be redirected to a file or another program.

We can use yum or dnf to install xclip on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install xclip.

Install xclip on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install xclip using dnf by running the following command:

sudo dnf -y install xclip

Install xclip on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install xclip using yum by running the following command:

sudo yum -y install xclip

How To Uninstall xclip on Fedora 34

To uninstall only the xclip package we can use the following command:

sudo dnf remove xclip

xclip Package Contents on Fedora 34

/usr/bin/xclip
/usr/bin/xclip-copyfile
/usr/bin/xclip-cutfile
/usr/bin/xclip-pastefile
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/d566ef1f646b6606e5562b55ffbeedc5032066
/usr/share/doc/xclip
/usr/share/doc/xclip/README
/usr/share/licenses/xclip
/usr/share/licenses/xclip/COPYING
/usr/share/man/man1/xclip-copyfile.1.gz
/usr/share/man/man1/xclip.1.gz
/usr/bin/xclip
/usr/bin/xclip-copyfile
/usr/bin/xclip-cutfile
/usr/bin/xclip-pastefile
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/f6230a134cc29ef3a7f48a13725d1e21d27b09
/usr/share/doc/xclip
/usr/share/doc/xclip/README
/usr/share/licenses/xclip
/usr/share/licenses/xclip/COPYING
/usr/share/man/man1/xclip-copyfile.1.gz
/usr/share/man/man1/xclip.1.gz

References

Summary

In this tutorial we learn how to install xclip on Fedora 34 using yum and dnf.