Challenge
DifficultyEasy
Learner activity334 solved of 358 attempts

Install Linux Packages from Remote Repositories (Fedora & RHEL Edition)

Ivan Velichko
by  Ivan Velichko · on
Linux
Practice one of the key Linux skills - installing packages from remote repositories.

Premium Challenge

Upgrade your membership to unlock this and all other premium materials.

Upgrade

In this challenge, you'll practice one of the key Linux skills - installing packages from remote repositories.

Task 1: Install a package from the official repository

tree is a handy command-line utility that displays directory structures in a tree-like format.

The tree package is available in Fedora's official package repository - installing it is just one command away.

Hint 1

On Fedora and RHEL systems, dnf is the go-to tool for installing software.

Hint 2

Unlike apt-get on Debian and Ubuntu, dnf doesn't require you to update the package list before installing a package, so you can proceed directly to dnf install.

Getting Permission denied? Use sudo.

Task 2: Install a package from a third-party repository

Not all software is available in the distribution's official repositories, and the packages that are there can be several releases behind the upstream project. Many projects maintain their own RPM repositories that you can add to your system.

Install GitHub CLI (gh) - a command-line tool for working with GitHub from the terminal.

Fedora's own repositories have a gh package too, but it often lags behind the latest release. Add GitHub's own repository first, and install gh from it.

Hint 3

The general process for adding a third-party DNF repository is:

  1. Download the repository's .repo configuration file into /etc/yum.repos.d/
  2. Install the package with dnf install. The --repo <repo-id> option makes DNF take the package from this repository only.

Unlike APT, DNF repository files typically include the GPG key URL directly in the .repo file, so there's no separate key import step.

Hint 4

Visit the project's installation docs for detailed instructions.

Problem
Solution
Start
Black Friday 2026