How To Install Jellyfin on Fedora 45

Install Jellyfin on Fedora 45

Plenty of people run a media server on Fedora for a few weeks and then give up. The cause is rarely Jellyfin. It’s usually a missing codec package, a firewall rule nobody remembered, an SELinux label on a mounted disk, or a transcoder that quietly falls back to the CPU and pins every core while one person watches a movie. Those problems are all avoidable.

Fedora is a good host for Jellyfin, but it isn’t a “paste three commands and walk away” distribution. It ships current kernels and Mesa, and it enforces SELinux by default. It also leaves out some multimedia codecs for licensing reasons. Those traits make it excellent for hardware transcoding and security. They also explain most of the support threads you’ll find.

This guide covers a working Jellyfin installation on Fedora 45 and the pieces around it. That includes the repository choice, firewall, storage layout, GPU acceleration, reverse proxy, backups and troubleshooting. Fedora releases move quickly, so check package availability on your own machine before relying on any version number written here. The commands target Fedora with DNF5 and use standard systemd, firewalld and SELinux tooling.

Two install routes are covered: native RPM packages and a Podman container. A short section explains how to pick between them.

Choose Your Install Method First

Jellyfin’s community documentation describes the Fedora route as enabling RPM Fusion, installing the jellyfin package, which pulls in jellyfin-server, jellyfin-web and jellyfin-firewalld, and then enabling the service. That is the simplest path and the one most home and small-office setups should use.

There’s another view worth knowing. A Jellyfin forum thread on Fedora notes that RPM Fusion doesn’t provide jellyfin-ffmpeg, only regular ffmpeg. It also states that the container image ships with the Jellyfin-specific ffmpeg build, which is why containers are often recommended on Fedora.

Factor Native RPM (RPM Fusion) Podman container
Setup effort Low Moderate
ffmpeg build Regular ffmpeg from RPM Fusion Bundled jellyfin-ffmpeg
Updates dnf upgrade Pull a new image
Isolation systemd sandboxing only Container boundary
GPU passthrough Direct, but the hardened unit can interfere Explicit device mapping
Best for Single-purpose home server Multi-service hosts, easy rollback

A practical rule: if the box does one job and you want boring maintenance, use RPMs. If it runs several services, or you want to roll back by changing an image tag, use Podman. The rest of the guide covers both.

Prepare Fedora 45 Before Installing

Start from a fully updated system. Mixing a stale base with fresh multimedia packages is a classic way to produce dependency conflicts.

sudo dnf upgrade --refresh -y
sudo reboot

The reboot matters if the kernel or Mesa changed, because GPU drivers and kernel modules need to match. After it comes back, confirm the release and SELinux state.

cat /etc/fedora-release
getenforce
hostnamectl

getenforce should print Enforcing. Leave it that way. Disabling SELinux to make an app work is a habit that causes more trouble than it solves, and the fixes below are small.

Give the server a stable address

Clients on your network need a predictable target. Set a DHCP reservation on the router, or configure a static address with NetworkManager.

nmcli device status
nmcli connection show

A reservation on the router is usually cleaner than a static address on the host, since it keeps all addressing in one place.

Plan storage before you install

Decide where media lives now, not later. A layout that holds up well:

  • /srv/media/movies, /srv/media/shows, /srv/media/music for libraries.
  • /var/lib/jellyfin for the database, metadata and configuration (default location).
  • /var/cache/jellyfin for image cache and transcodes, ideally on fast storage.

Keep metadata and the transcode directory on an SSD or NVMe if you can. Libraries can sit on slower spinning disks without any user-visible penalty, because direct play is mostly sequential reading. The database and cache are what feel slow on bad storage, and a library scan on a hard drive with thousands of small artwork files is a good test of that.

Method 1: Install Jellyfin with RPM Fusion

Step 1: Enable RPM Fusion

RPM Fusion carries the full ffmpeg and the Jellyfin packages. Enable both the free and nonfree repositories using the official release packages.

sudo dnf install \
  https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
  https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

On a new release, RPM Fusion repositories can lag for a short time after Fedora ships. If the command returns a 404 for your release number, the repository isn’t published yet. Check RPM Fusion’s site and wait rather than forcing an older release’s package onto the system.

Step 2: Switch to the full ffmpeg

Fedora’s own ffmpeg-free is built without many patent-encumbered codecs. RPM Fusion’s documentation says ffmpeg-free works most of the time but can cause version mismatches, and recommends switching to the full ffmpeg.

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

If you have never installed ffmpeg-free, DNF will say there’s nothing to swap. In that case install it directly:

sudo dnf install ffmpeg

Step 3: Install the Jellyfin packages

sudo dnf install jellyfin

The meta package brings in the server, web client and firewalld service definition. Review the transaction summary before accepting it. You should see jellyfin-server, jellyfin-web and jellyfin-firewalld. If DNF proposes removing something unrelated, stop and read why.

Step 4: Start and enable the service

sudo systemctl enable --now jellyfin
systemctl status jellyfin --no-pager

Healthy output shows active (running). Watch the first start in the journal, because Jellyfin creates its directories and database then:

journalctl -u jellyfin -f

Step 5: Open the firewall

The package ships a firewalld service definition, which is better than hand-opening raw port numbers. The Copr documentation uses the same pattern.

sudo firewall-cmd --add-service=jellyfin
sudo firewall-cmd --runtime-to-permanent
sudo firewall-cmd --list-services

Applying a rule at runtime first and then promoting it is a safe habit on a remote machine. If a rule locks you out, a reboot restores the previous state.

If the service definition is missing for any reason, open the default HTTP port directly:

sudo firewall-cmd --permanent --add-port=8096/tcp
sudo firewall-cmd --reload

Jellyfin also uses UDP 1900 for DLNA and UDP 7359 for client auto-discovery. Open those only if you want them. On a server exposed beyond a trusted LAN, skip DLNA entirely.

Step 6: Run the setup wizard

Browse to http://SERVER-IP:8096 from another machine. The wizard asks for an admin account, language, library paths and metadata preferences. Choose a strong admin password now. Don’t plan to fix it later.

Method 2: Run Jellyfin in Podman

Podman is Fedora’s native container tool, daemonless and rootless by default. Running Jellyfin there gives you the bundled jellyfin-ffmpeg and an easy way to roll back.

Install Podman and create directories

sudo dnf install podman
sudo mkdir -p /srv/jellyfin/{config,cache}
sudo mkdir -p /srv/media

Run the container

sudo podman run -d \
  --name jellyfin \
  --restart=always \
  -p 8096:8096 \
  -v /srv/jellyfin/config:/config:Z \
  -v /srv/jellyfin/cache:/cache:Z \
  -v /srv/media:/media:ro,z \
  docker.io/jellyfin/jellyfin:latest

The :Z and :z suffixes tell Podman to relabel directories so SELinux permits access. Use capital Z for private data used by one container, and lowercase z for shared content like a media library that other containers might read. Never use :Z on a directory you share with other services or users, because relabeling can break them.

Pin a version tag in production instead of latest. A surprise upgrade during a database migration is not how anyone wants to spend a Sunday.

Make it start at boot with systemd

Generate a unit from the running container, or better, write a Quadlet file. A minimal Quadlet at /etc/containers/systemd/jellyfin.container:

[Unit]
Description=Jellyfin Media Server
After=network-online.target

[Container]
Image=docker.io/jellyfin/jellyfin:latest
ContainerName=jellyfin
PublishPort=8096:8096
Volume=/srv/jellyfin/config:/config:Z
Volume=/srv/jellyfin/cache:/cache:Z
Volume=/srv/media:/media:ro,z

[Service]
Restart=always

[Install]
WantedBy=multi-user.target

Then reload and start:

sudo systemctl daemon-reload
sudo systemctl start jellyfin

If you run the container this way, open the port with firewall-cmd --add-port=8096/tcp, since the jellyfin firewalld service comes from the RPM package.

Set Up Libraries and Permissions

Jellyfin’s RPM install runs as a dedicated jellyfin user. That user must be able to read your media directories. Verify rather than assume:

sudo -u jellyfin ls /srv/media/movies

If that fails with “Permission denied,” fix ownership or group access. A tidy approach is a shared group:

sudo groupadd media
sudo usermod -aG media jellyfin
sudo chgrp -R media /srv/media
sudo chmod -R g+rX /srv/media
sudo systemctl restart jellyfin

Group membership only applies after the service restarts, which trips people up regularly.

Naming matters more than most guides admit

Metadata matching depends on folder and file names. Use the layout Jellyfin documents for its scrapers:

/srv/media/movies/Blade Runner (1982)/Blade Runner (1982).mkv
/srv/media/shows/Severance/Season 01/Severance - S01E01.mkv

Sloppy names produce wrong posters and duplicate entries, and no amount of server tuning compensates for that. Rename in bulk before the first scan, because rematching a large library later is tedious.

SELinux and media storage

On an RPM install, the Jellyfin service generally runs without a dedicated SELinux policy, so reading media rarely produces denials. Problems appear mainly with external disks, NFS or CIFS mounts, and containers. Check for denials directly:

sudo ausearch -m avc -ts recent
sudo journalctl -t setroubleshoot --since "1 hour ago"

For local media you want readable by services, you can set a content label:

sudo dnf install policycoreutils-python-utils
sudo semanage fcontext -a -t public_content_t "/srv/media(/.*)?"
sudo restorecon -Rv /srv/media

For network mounts, mount with the right context option or enable the relevant boolean:

getsebool -a | grep -E 'nfs|samba'

Generating a custom policy with audit2allow is a last resort. Read the denial first. Many of them describe a path you simply labeled wrong.

Enable Hardware Transcoding

Software transcoding of a 4K HEVC file can saturate a modest CPU. Hardware acceleration moves that work to the GPU, and it’s the single biggest performance improvement on a Jellyfin server. Jellyfin supports VA-API on Intel and AMD under Linux, among other methods.

Intel and AMD with VA-API

First, check the GPU is visible and that your user can reach it:

ls -l /dev/dri

You should see card0 and renderD128. Add the service account to the right groups:

sudo usermod -aG render,video jellyfin
sudo systemctl restart jellyfin

Install the tools and driver pieces. The Fedora wiki states that vainfo is how you verify VA-API, and that new Intel hardware may need intel-media-driver from RPM Fusion.

sudo dnf install libva-utils
sudo dnf install intel-media-driver   # newer Intel iGPUs
vainfo

For AMD, Fedora strips patent-encumbered codec support from its Mesa build. RPM Fusion’s multimedia guide says to install the freeworld driver and swap the Vulkan package:

sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
sudo dnf swap mesa-vulkan-drivers mesa-vulkan-drivers-freeworld

Run vainfo again and look for H.264 and HEVC profiles with VAEntrypointVLD (decode) and VAEntrypointEncSlice (encode). If no encode entry exists for a codec, Jellyfin can’t use the GPU to produce that stream.

Turn it on in Jellyfin

Go to Dashboard, then Playback, then Transcoding. Choose VAAPI, set the device to /dev/dri/renderD128, and enable decoding for the codecs your GPU supports. Be conservative with HEVC and AV1 encoding unless the hardware clearly supports it. Test with one stream, then open the dashboard during playback and look for “(hw)” in the transcode details.

The systemd hardening gotcha

A GitHub issue titled “VAAPI not working with default systemd config,” reported on a Fedora system with ffmpeg from RPM Fusion, describes how the default unit’s hardening options block VA-API. If acceleration fails despite correct groups and drivers, inspect the unit and use a drop-in override instead of editing the packaged file:

systemctl cat jellyfin
sudo systemctl edit jellyfin

Add only what you need, for example allowing device access:

[Service]
PrivateDevices=false
DeviceAllow=/dev/dri/renderD128 rw

Then run sudo systemctl daemon-reload && sudo systemctl restart jellyfin. Loosen one option at a time and retest, so you keep as much sandboxing as possible.

NVIDIA

NVIDIA’s proprietary driver doesn’t support VA-API natively. The RPM Fusion guide points to the libva-nvidia-driver wrapper to bridge NVDEC/NVENC, though Jellyfin’s own NVENC path is normally the better choice with NVIDIA cards. Install the driver from RPM Fusion nonfree, reboot, confirm with nvidia-smi, and select NVENC in Jellyfin. Secure Boot complicates kernel module loading, so enroll the signing key or disable Secure Boot first.

Add a Reverse Proxy with HTTPS

Direct HTTP over the internet exposes passwords in clear text. A reverse proxy solves that and lets you use standard ports 80 and 443.

Nginx example

sudo dnf install nginx certbot python3-certbot-nginx

Create /etc/nginx/conf.d/jellyfin.conf:

server {
    listen 80;
    server_name media.example.com;

    client_max_body_size 20M;

    location / {
        proxy_pass http://127.0.0.1:8096;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
    }

    location /socket {
        proxy_pass http://127.0.0.1:8096;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
    }
}

The /socket block is not optional. Jellyfin uses WebSockets for remote control and live session updates, and without upgrade headers those features fail in confusing ways.

SELinux blocks nginx from connecting to backend ports by default, which produces 502 errors that look like a Jellyfin fault. Allow it:

sudo setsebool -P httpd_can_network_connect 1
sudo nginx -t && sudo systemctl enable --now nginx
sudo firewall-cmd --permanent --add-service={http,https}
sudo firewall-cmd --reload
sudo certbot --nginx -d media.example.com

Afterward, in Jellyfin’s Networking settings, add the proxy to “Known proxies” so the real client IP appears in logs and in any fail2ban rules. Once the proxy works, remove the direct 8096 rule from the public zone.

Backups and Upgrades

A Jellyfin install holds hours of curation: watch history, user accounts, collections and metadata edits. Back it up before every major upgrade.

sudo systemctl stop jellyfin
sudo tar -czf /root/jellyfin-backup-$(date +%F).tar.gz /var/lib/jellyfin /etc/jellyfin
sudo systemctl start jellyfin

Stopping the service first ensures the database is consistent. For continuous protection, use restic or borg against /var/lib/jellyfin and /etc/jellyfin, and store copies off the machine. Test a restore once. An untested backup is just an optimistic file.

Native installs update through DNF:

sudo dnf upgrade --refresh
sudo systemctl restart jellyfin

Container users pull the new image and recreate the container, keeping the same volume mounts. Major Jellyfin releases can migrate the database in one direction only, so downgrading usually requires restoring a backup.

Troubleshooting Common Problems

The web page does not load

Check the service, the listening port and the firewall in that order:

systemctl status jellyfin
ss -tlnp | grep 8096
sudo firewall-cmd --list-all

If the service is running and the port is listening, the firewall is almost always the cause. Confirm you opened the right zone. firewall-cmd --get-active-zones shows which zone your interface belongs to, and rules added to a different zone have no effect.

Service fails to start

Read the journal. Don’t guess.

journalctl -u jellyfin -b --no-pager | tail -50

Typical causes are a port conflict, a corrupt configuration after a bad shutdown, or wrong ownership on /var/lib/jellyfin. Fix ownership with sudo chown -R jellyfin:jellyfin /var/lib/jellyfin /var/cache/jellyfin.

Library shows no media

This is nearly always permissions or SELinux. Run the sudo -u jellyfin ls test from earlier, then check for AVC denials with ausearch. On network shares, make sure the mount is present when the service starts, and add After=remote-fs.target through a drop-in if needed.

Playback stutters or transcodes constantly

Open the dashboard during playback and read the reason for transcoding. Common triggers are an unsupported audio codec (such as DTS or TrueHD on a TV), burned-in subtitles, or a bitrate cap. Switching subtitles to a text format such as SRT lets many clients avoid video transcoding entirely, since image-based subtitles force burn-in.

Hardware acceleration fails

Work through this list:

  1. vainfo runs without errors and shows the needed profiles.
  2. The jellyfin user is in render and video groups, and the service was restarted.
  3. The device path in Jellyfin matches /dev/dri/renderD128 (or the correct node).
  4. The systemd hardening isn’t blocking device access.
  5. The playback log in Dashboard, Logs shows the ffmpeg command and the actual error.

The ffmpeg log is the real diagnostic. Copy the command from it and run it manually as the jellyfin user to reproduce the failure outside the web UI.

Missing codecs or ffmpeg errors

If transcoding fails with encoder errors, you probably still have ffmpeg-free. Confirm with rpm -q ffmpeg ffmpeg-free and redo the swap. RPM Fusion also notes version mismatches can occur with the limited build.

502 Bad Gateway behind nginx

Check setsebool httpd_can_network_connect, confirm Jellyfin listens on 127.0.0.1:8096 or the address you proxy to, and read /var/log/nginx/error.log. A “permission denied while connecting to upstream” line means SELinux.

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.

Related Posts