Manage Software with YUM in Linux
Learn On Demand
Learn On Demand Pro Series

Time
45 minutes
Difficulty
Beginner

IT Pro Challenges, lab trains learners to install, gather information about, and remove software packages and create a yum repository in the VIM text editor. Those on the Network Operations Specialist career path strengthen their Linux skills in this guided virtual lab.

Start your free 7-day trial and become one of the 3 million Cybersecurity and IT professionals advancing their career goals

Sign up with
Or

Already have an account? Sign In »

This Learn On Demand Pro Series is part of a Career Path: Become a Network Engineer

Overview

In this 45-minute guided lab, in a CentOS 7 Linux virtual system, participants use Yellowdog Updater Modified (YUM) and Terminal to install and manage a package. Trainees also configure a repository using the vim text editor. This entire challenge comprises part of the Command-Line and File System-Challenge Series Learning series.

Learners need to set aside a complete 45-minute time block as they cannot pause and return to the Manage Software with Yum and Linux virtual lab. The lab benefits those most who have some familiarity with Terminal and vim. In revisiting the repository configuration scripted, users benefit from already knowing how to open Terminal and change between insert and command modes in vim.

Throughout the lab, users practice proper scripting and coding in Linux.

YUM advances the package management capabilities of the RPM Package Manager (RPM). YUM simplifies software maintenance across multiple machines by figuring out the resources needed to install these packages and update them. YUM also allows its users to customize package management and edit the configurations as needed. YUM does NOT work with programs requiring Advanced Package Tool or APT. However, YUM works with software-managed via RPM and loads programs like Cython, a derivative of Python applied in machine learning.

Understand the scenario:

For this lab, you are a Linux systems administrator responsible for a file server. You need to manage software packages on the file server. First, use the yum command to install and manage software packages, and then use the yum command to remove software packages. Next, you configure a local repository of software packages.

Manage Packages Using ‘yum’ Commands:

This lab module teaches how to list software already on the system and display operations from ‘yum’ commands. Also, participants check Cython dependencies, install, update, and get information about the Cython package. Learners then remove the Cython software from the system using ‘Yum.’

This section provides troubleshooting skills in the case of a “yum-lock.” The “yum-lock” occurs when installing a package requires a dependency that continues to run on the system. In this case, users learn to fix the error by stopping the responsible process using a ‘kill’ command. Participants can apply this technique when using YUM in the future.

Configure a Local ‘yum’ Repository:

Administrators can customize YUM package management for individual programs and groupings containing all related dependencies. In this portion, learners configure, save, and use ‘yum’ repositories. The exercise has participants create a directory for the yum configurations and script one in the vim text editor. Learners then instruct the system to enable only the newly created repository when the machine installs Z shell.

Learners set a ‘gpgcheck’ value in the ‘yum’ configuration script. This instruction determines whether YUM validates the software to be installed. The value “1” means yes, and “0” means no. As the ‘yum’ command acts upon the software packages, the system simultaneously searches and applies configurations from ‘yum’ repositories.

This section also teaches how to list all available ‘yum’ repositories and to update the ‘yum’ cache. —clearing the ‘yum’ cache purges old packages and updated software components, freeing more space for a new download.

Summary:

Upon completing this lab, part of the Linux: Command-Line and File System-Challenge Series, learners will understand how to manage software packages with the ‘yum’ command set. Participants also write and save a ‘yum’ repository. They, then, use this script to configure a Z shell installation.

Users interested in additional Linux packaging utilities and advanced YUM capabilities should check out additional labs.

  • GUIDED CHALLENGE: Manage Software with RPM and APT in Linux
  • ADVANCED CHALLENGE: Can You Configure a YUM Repository in Linux?

Comprehensive Learning

See the full benefits of our immersive learning experience with interactive courses and guided career paths.

LEARN MORE. ACHIEVE MORE.

Follow A Path

Deciphering the essentials to enter a new career is hard, so we did it for you!

Focus on building your skills and take this learn on demand pro series in a guided Career Path.

LEARN MORE. ACHIEVE MORE.

Follow A Path

Deciphering the essentials to enter a new career is hard, so we did it for you!

Focus on building your skills and take this learn on demand pro series in a guided Career Path.