How to Install VLC on Linux (Debian, Ubuntu, Fedora, Arch)
Linux distributions ship VLC in their official repositories, which makes installation a single command. This guide covers the major package managers, the Snap/Flatpak alternatives, and the crucial post-install step: enabling hardware acceleration so 4K playback is actually smooth.
Step 1 — Install from your distribution
Debian/Ubuntu:
sudo apt update && sudo apt install vlcVLC installs from the official repos.
Fedora:
sudo dnf install vlc(enable RPM Fusion first if needed).VLC installs.
Arch:
sudo pacman -S vlcVLC installs from the Arch repos.
Step 2 — Alternatives: Flatpak & Snap
Flatpak:
flatpak install flathub org.videolan.VLCVLC installs sandboxed.
Snap:
sudo snap install vlcVLC installs as a snap.
Step 3 — Enable hardware acceleration (post-install)
Install the VA-API driver for your GPU:
sudo apt install mesa-va-drivers(Intel/AMD) or the NVIDIA driver package.VA-API support is installed.
In VLC: Tools > Preferences > Input / Codecs > "Hardware-accelerated decoding" > Automatic (or VA-API/VDPAU).
GPU decoding is enabled.
Play a 4K file and check Tools > Media Information > Codec — the decoder should show VAAPI/VDPAU.
Hardware decode is confirmed.
Frequently asked Linux questions
- Why is the repo version old? — Distro maintainers stabilize versions; use Flatpak for the latest.
- VLC has no sound on Linux? — Set Audio > Output > PulseAudio (the PipeWire compat layer), never raw ALSA under PipeWire.
- Missing codecs (H.264/HEVC) on Fedora? — Enable RPM Fusion nonfree, then reinstall vlc.
Frequently asked questions
Is VLC free on Linux?
Flatpak or apt VLC — which should I use?
Why does VLC stutter on 4K in Linux?
How do I uninstall VLC on Linux?
sudo apt remove vlc (or dnf remove / pacman -Rns). Add --purge to delete config.