How To Install autocutsel on Debian 11

In this tutorial we learn how to install autocutsel on Debian 11. autocutsel is Keep the X clipboard and the cutbuffer in sync

Introduction

In this tutorial we learn how to install autocutsel on Debian 11.

What is autocutsel

autocutsel is:

This tracks changes in the server’s cutbuffer and clipboard selection. when the clipboard is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the clipboard selection. The cutbuffer and clipboard selection are always synchronized. In the case of a VNC client since it synchronizes the Windows’ clipboard and the server’s cutbuffer, all three “clipboards” are always kept synchronized. When you copy some text in Windows, the cutbuffer and the clipboard selection are updated. When you copy text on the server using either the cutbuffer or the clipboard selection, the Windows’s clipboard is always updated.

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

Install autocutsel Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install autocutsel

Install autocutsel Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install autocutsel using apt by running the following command:

sudo apt -y install autocutsel

Install autocutsel 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 autocutsel using aptitude by running the following command:

sudo aptitude -y install autocutsel

How To Uninstall autocutsel on Debian 11

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

sudo apt-get remove autocutsel

Uninstall autocutsel And Its Dependencies

To uninstall autocutsel and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove autocutsel

Remove autocutsel Configurations and Data

To remove autocutsel configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge autocutsel

Remove autocutsel configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge autocutsel

Dependencies

autocutsel have the following dependencies:

References

Summary

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