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
Set vi as the default editor in Ubuntu — a terminal opening the vim editor
How to Set vi (Vim) as the Default Editor in Ubuntu
June 8, 2026
rsync says ALL DONE but files are missing — a terminal showing ALL DONE next to an empty folder
rsync Says “ALL DONE” but Files Are Missing: How to Verify
June 8, 2026
Migrate a website to a new server with rsync — files copying from an old server to a new one over SSH
How to Migrate a Website to a New Server With rsync
June 8, 2026
Bun runtime — faster JS toolkit replacing npm in Laravel projects
How to Install Bun Runtime on Ubuntu (And Use It in a Laravel Project)
May 24, 2026
Tailscale mesh — peer-to-peer connections between devices, coordination server
How to Install Tailscale on Ubuntu (Zero-Config Mesh VPN for Self-Hosters)
May 24, 2026

You Might Also Like

PHP Bangladeshi number format — 1,00,23,456.79 grouping
Web Development

Format Numbers in Bangladeshi / Indian Style with PHP

6 Min Read
Get a remote file size from URL in PHP with get_headers
Web Development

How to Get a Remote File’s Size from a URL in PHP

4 Min Read
Comment in a .gitignore file with the # character
Web Development

How to Comment in a .gitignore File

4 Min Read
Completely remove MariaDB from a RHEL-family server
Server Management

How to Remove MariaDB Completely from RHEL/CentOS

5 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?