Install and Update Software Packages

Red Hat Enterprise LinuxBeginner
Practice Now

Introduction

As a system administrator, you will often need to manage software on your systems. This challenge will guide you through the fundamental tasks of installing new software and updating existing packages using the dnf package manager on a Red Hat Enterprise Linux (RHEL) system. These are core skills for maintaining a healthy and secure environment.

Install a New Package

Your first task is to install a new software package from the repositories configured on your system. You will install tree, a useful utility for displaying directory structures in a tree-like format.

Tasks

  • Install the tree software package.

Requirements

  • Use the dnf command to perform the installation.
  • You must have sudo privileges to install software.

Example

After a successful installation, running the tree command in your home directory (/home/labex), which is currently empty, should produce the following output:

[labex@host ~]$ tree
.
└── project

1 directory, 0 files

Update an Existing Package

Keeping software up-to-date is crucial for security and stability. Your next task is to update an existing package, vim, to the latest version available from the repositories.

Tasks

  • Update the vim package.

Requirements

  • Use the dnf command to perform the update.
  • You must have sudo privileges to update software.

Example

After updating the vim package, you can check its version. The output should display the new, updated version number.

vim --version
VIM - Vi IMproved 9.x
...

Summary

In this challenge, you have learned the fundamental skills of managing software on a Red Hat Enterprise Linux system. You practiced installing a new package (tree) and updating an existing one (vim) using the dnf command-line tool. These are essential operations for any system administrator responsible for deploying, configuring, and maintaining RHEL systems.

✨ Check Solution and Practice✨ Check Solution and Practice