How To Install scrot on Debian 10

Learn how to install scrot on Debian 10 with this tutorial. scrot is command line screen capture utility

Introduction

In this tutorial we learn how to install scrot on Debian 10.

What is scrot

scrot is:

scrot (SCReen shOT) is a simple command line screen capture utility that uses imlib2 to grab and save images. Multiple image formats are supported through imlib2’s dynamic saver modules.

Some features of the scrot:

  • support to multiple image formats (JPG, PNG, GIF, etc.).
  • optimization of the screen shots image quality.
  • capture a specific window or a rectangular area on the screen with the help of switch.

scrot also can be used to monitor a desktop PC in admin absent and register unwanted activities.

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

Install scrot Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install scrot

Install scrot Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install scrot

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

sudo aptitude -y install scrot

How To Uninstall scrot on Debian 10

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

sudo apt-get remove scrot

Uninstall scrot And Its Dependencies

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

sudo apt-get -y autoremove scrot

Remove scrot Configurations and Data

To remove scrot configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge scrot

Remove scrot configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge scrot

Dependencies

scrot have the following dependencies:

References

Summary

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