How To Install libclipboard-perl on Debian 12

Learn how to install libclipboard-perl on Debian 12 with this tutorial. libclipboard-perl is module to use X selections (clipboard) from Perl

Introduction

In this tutorial we learn how to install libclipboard-perl on Debian 12.

What is libclipboard-perl

libclipboard-perl is:

Clipboard is a module for accessing the X clipboard. It provides a copy() and a paste() function, and uses xclip(1) under the hood.

Additionally the package includes a couple of scripts for working with the clipboard:

clipaccumulate clipbrowse clipedit clipfilter clipjoin

There are three methods to install libclipboard-perl on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libclipboard-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libclipboard-perl using apt-get by running the following command:

sudo apt-get -y install libclipboard-perl

Install libclipboard-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libclipboard-perl using apt by running the following command:

sudo apt -y install libclipboard-perl

Install libclipboard-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libclipboard-perl using aptitude by running the following command:

sudo aptitude -y install libclipboard-perl

How To Uninstall libclipboard-perl on Debian 12

To uninstall only the libclipboard-perl package we can use the following command:

sudo apt-get remove libclipboard-perl

Uninstall libclipboard-perl And Its Dependencies

To uninstall libclipboard-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libclipboard-perl

Remove libclipboard-perl Configurations and Data

To remove libclipboard-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libclipboard-perl

Remove libclipboard-perl configuration, data, and all of its dependencies

We can use the following command to remove libclipboard-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libclipboard-perl

Dependencies

libclipboard-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libclipboard-perl package on Debian 12 using different package management tools: apt, apt-get and aptitude.