How7oHow7o
  • Home
  • Tools
    • All Tools
    • Image Tools
    • Text & String Tools
    • Video Tools
    • Developer Tools
    • PDF Tools
    • Calculators & More
  • Prank Screens
  • Learn
  • Blog
  • Contact
Reading: How to Install HandBrake CLI on Linux (Flatpak)
Share
Notification Show More
Font ResizerAa
How7oHow7o
Font ResizerAa
  • Tools
  • Prank Screens
  • Learn
  • Blog
Search
  • Home
  • Tools
    • All Tools
    • Image Tools
    • Text & String Tools
    • Video Tools
    • Developer Tools
    • PDF Tools
    • Calculators & More
  • 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.

You Might Also Like

Delete all lines in Vim with :%d
Server Management

How to Delete All Lines in a File with Vi or Vim

4 Min Read
Install the Apache web server on Ubuntu
Server Management

How to Install the Apache Web Server on Ubuntu

7 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
MariaDB 11.4 LTS database cylinder being installed on Ubuntu
Server Management

How to Install MariaDB 11.4 LTS on Ubuntu 24.04 (Fresh Install, Secured)

10 Min Read
How7oHow7o

Free browser-based tools, prank screens, and step-by-step tech tutorials. No signup, nothing uploaded.

  • Private by design — your files never leave your device
  • Instant — no signup, no install, no waiting
  • Always free — no trials, no watermarks, no paywalls

Tools

  • PDF Editor
  • Image Upscaler
  • JPEG Compressor
  • Password Generator
  • QR Code Generator
  • Video Trimmer
  • See all tools →

Pranks

  • Cracked Screen Prank
  • Fake Blue Screen (BSOD)
  • Fake Disk Format
  • Fake Low Battery
  • Fake Nintendo Switch Update Screen
  • Fake PlayStation Update Screen
  • 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?