Install Linux Packages from Remote Repositories (Fedora & RHEL Edition)
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. 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.
This package is not in Fedora's official repositories, so you'll need to add GitHub's own repository first.
Hint 3
The general process for adding a third-party DNF repository is:
- Download the repository's
.repoconfiguration file into/etc/yum.repos.d/ - Install the package with
dnf install
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.