How To Install handbrake-cli on Debian 9

In this tutorial we learn how to install handbrake-cli on Debian 9. handbrake-cli is versatile DVD ripper and video transcoder (command line)

Introduction

In this tutorial we learn how to install handbrake-cli on Debian 9.

What is handbrake-cli

handbrake-cli is:

HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos into H.264, XViD, or Ogg formatted media. It’s particularly useful for making videos that are compatible with portable video devices such as the Apple iPod/iPhone or Sony PSP.

This package contains the command-line variant, HandBrakeCLI.

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

Install handbrake-cli Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install handbrake-cli

Install handbrake-cli Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install handbrake-cli

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

sudo aptitude -y install handbrake-cli

How To Uninstall handbrake-cli on Debian 9

To uninstall only the handbrake-cli package we can use the following command:

sudo apt-get remove handbrake-cli

Uninstall handbrake-cli And Its Dependencies

To uninstall handbrake-cli and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove handbrake-cli

Remove handbrake-cli Configurations and Data

To remove handbrake-cli configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge handbrake-cli

Remove handbrake-cli configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge handbrake-cli

Dependencies

handbrake-cli have the following dependencies:

References

Summary

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