How7o
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Reading: How to Install HandBrake CLI on Linux (Flatpak)
Share
How7oHow7o
Font ResizerAa
  • OS
Search
  • Home
  • Tools
  • Prank Screens
  • Learn
  • Blog
  • Contact
Follow US
© 2024–2026 How7o. All rights reserved.
How7o > Free Laravel, PHP, WordPress & Server Tutorials > Server Management > How to Install HandBrake CLI on Linux (Flatpak)
Server Management

How to Install HandBrake CLI on Linux (Flatpak)

how7o
By how7o
Last updated: May 22, 2026
5 Min Read
Install HandBrake CLI on Linux with Flatpak
SHARE

To install HandBrake CLI on Linux via Flatpak — the path the HandBrake project officially supports — install Flatpak from your distro repos, then install HandBrake from the Flathub or a downloaded .flatpak bundle. Run it through flatpak run.

Contents
  • Step 1 — install Flatpak
  • Step 2 — add Flathub (recommended)
  • Step 3 — install HandBrake
  • Step 4 — run HandBrake CLI
  • Alternative — RPM Fusion (RHEL-family) or apt (Debian-family)
  • Frequently asked questions
  • Related guides
  • References

Last verified: 2026-05-17 on AlmaLinux 9 with Flatpak 1.14. Originally published 2023-11-30, rewritten and updated 2026-05-17.

Step 1 — install Flatpak

# RHEL-family (AlmaLinux, Rocky, RHEL)
sudo dnf install flatpak -y

# CentOS 7 (legacy / EOL)
sudo yum install flatpak -y

# Debian / Ubuntu
sudo apt install flatpak -y

Step 2 — add Flathub (recommended)

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Flathub is the central Flatpak repository — adding it once lets flatpak install pull HandBrake and other apps by name. If you’ve downloaded an offline .flatpak bundle from the HandBrake releases page, you can skip this step.

Install HandBrake CLI on Linux — Flatpak install, run via flatpak run, RPM Fusion alternative

Step 3 — install HandBrake

# Stand-alone CLI (no GUI dependencies)
flatpak install flathub fr.handbrake.HandBrakeCLI

# GUI build (also includes the CLI binary)
flatpak install flathub fr.handbrake.ghb

# Or install from a local .flatpak bundle
flatpak install ./HandBrakeCLI-1.7.x-x86_64.flatpak

For server-side encoding you only need the CLI bundle. The GUI build pulls in GTK and Wayland/X11 dependencies you don’t want on a headless box.

Step 4 — run HandBrake CLI

# Stand-alone CLI bundle
flatpak run fr.handbrake.HandBrakeCLI --help

# CLI shipped inside the GUI bundle
flatpak run --command=HandBrakeCLI fr.handbrake.ghb --help

# Example: encode a file with the Fast 1080p30 preset
flatpak run fr.handbrake.HandBrakeCLI \
    -i input.mkv \
    -o output.mp4 \
    --preset "Fast 1080p30"

Alternative — RPM Fusion (RHEL-family) or apt (Debian-family)

# AlmaLinux / Rocky / RHEL 9 via RPM Fusion
sudo dnf install \
    https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
sudo dnf install HandBrake-cli

# Debian / Ubuntu (native package)
sudo apt install handbrake-cli

These give you a regular binary at /usr/bin/HandBrakeCLI — no flatpak run wrapper needed. The trade-off is version lag: Flatpak typically ships the latest stable; distro repos can be a release or two behind.

Frequently asked questions

Why use Flatpak instead of the native package?

HandBrake’s official Linux binaries are distributed as Flatpak bundles because Flatpak ships the exact dependency versions HandBrake was built against, sidestepping the “works on Ubuntu, breaks on RHEL” problem. On Ubuntu/Debian a native handbrake-cli package exists in the repos; on RHEL-family the Flatpak is the supported path.

Where does Flatpak install the bundle on disk?

User-mode (flatpak install --user) puts it under ~/.var/app/fr.handbrake.HandBrakeCLI/. System-wide (sudo flatpak install without --user) installs to /var/lib/flatpak/. For server-side batch encoding you usually want system-wide so the same binary works for every user and cron job.

Can I run HandBrake CLI in a cron job?

Yes — wrap the flatpak run invocation in a script. Note that Flatpak’s flatpak run --command=HandBrakeCLI fr.handbrake.ghb -- ARGS form is what passes flags through to the binary. Test the command line interactively first, then put it in cron. Watch for input file paths — Flatpak’s sandbox can prevent reads outside /home unless you grant access with flatpak override.

Is there a non-Flatpak option on AlmaLinux/Rocky?

Yes — the RPM Fusion repository ships HandBrake-cli for Fedora and RHEL-family. Add RPM Fusion first (dnf install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm), then dnf install HandBrake-cli. Whether you prefer this or Flatpak is mostly a question of which ecosystem you already trust on the box.

Related guides

  • How to Check the Linux OS Name and Version from the Command Line
  • How to Install the Apache Web Server on Ubuntu
  • How to Zip Multiple Files and Directories in Linux

References

HandBrake documentation: handbrake.fr/docs. HandBrake releases (GitHub): github.com/HandBrake/HandBrake/releases. Flatpak documentation: docs.flatpak.org. RPM Fusion: rpmfusion.org.

TAGGED:configurationLinuxvideo

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article Install HAProxy on AlmaLinux, Rocky Linux, or RHEL How to Install and Set Up HAProxy on AlmaLinux, Rocky, or RHEL
Next Article Install the Apache web server on Ubuntu How to Install the Apache Web Server on Ubuntu
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

FacebookLike
XFollow
PinterestPin
InstagramFollow
Most Popular
Run Laravel queue workers with Supervisor
How to Run Laravel Queue Workers in Production with Supervisor
May 23, 2026
Nginx as a reverse proxy for a Node.js app on Ubuntu
How to Set Up Nginx as a Reverse Proxy for Node.js on Ubuntu
May 23, 2026
Install and configure Redis on Ubuntu for Laravel and WordPress
How to Install and Configure Redis on Ubuntu (for Laravel & WordPress)
May 23, 2026
Harden a fresh Ubuntu VPS with UFW, Fail2Ban, and SSH key auth
How to Harden a Fresh Ubuntu VPS: UFW + Fail2Ban + SSH Key Auth
May 23, 2026
Set up Let's Encrypt SSL with Certbot on Ubuntu
How to Set Up Let’s Encrypt SSL with Certbot on Ubuntu (Apache & Nginx)
May 23, 2026

You Might Also Like

Check Ubuntu version — terminal and Settings
Server Management

How to Check Your Ubuntu Version

4 Min Read
Nginx redirect www to non-www or vice versa
Server Management

How to Redirect www to non-www (or vice versa) in Nginx

5 Min Read
Extract a .tar.gz archive in PHP with PharData
Web Development

How to Extract a .tar.gz Archive in PHP

5 Min Read
Remove the Other Favorites button on the Microsoft Edge favorites bar
OS

How to Remove the “Other Favorites” Button in Microsoft Edge

4 Min Read
How7o

We provide tips, tricks, and advice for improving websites and doing better search.

Tools

  • Age Calculator
  • Word Counter
  • Image Upscaler
  • Password Generator
  • QR Code Generator
  • See all tools→

Pranks

  • Fake Blue Screen Prank
  • Hacker Typer
  • Fake iMessage Generator
  • Windows XP Crash Prank
  • Windows 11 Update Prank
  • See all prank screens →

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service
  • Sitemap
© 2024–2026 How7o. All rights reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?