Leaving presentation mode.

Install and Update Software Packages

Dennis Kibbe

Mesa Community College

Keyboard Shortcuts

Welcome to Install and Update Software Packages — I'm Dennis Kibbe from Mesa Community College. Today we'll explore how to register systems, work with RPM and DNF, manage repos, and more. This slide presentation was created by B6Plus. The audio accompanying this presentation is AI-generated.

Module Outline

Let's review today's outline: we'll start with system registration, then move to RPMs, complete exercises, dive into DNF, enable repositories — all culminating in a summary and graded lab.

Learning Objectives

After completing the work in this module you will be able to:

By the end of this module, you'll be able to register RHEL hosts, inspect RPMs, query/install packages via DNF, enable or disable repos, and understand how backporting keeps systems secure.

Register Systems for Red Hat Support

Red Hat Subscription Management

Entitlement Certificates

Graded Quiz

Register Systems for Red Hat Support

Explain and Investigate RPM Software Packages

Software Packages and RPM

Name

httpd-2.4.62-1.el9_5.2.x86_64.rpm
      

Software Packages and RPM

Version

httpd-2.4.62-1.el9_5.2.x86_64.rpm
      

Software Packages and RPM

Release

httpd-2.4.62-1.el9_5.2.x86_64.rpm
      

Software Packages and RPM

Architecture

httpd-2.4.62-1.el9_5.2.x86_64.rpm
      

This package is built for 64bit Intel and AMD processors.

Examine RPM Packages

[student@servera ~]$ rpm -q httpd
httpd-2.4.62-1.el9_5.2.x86_64
      

Install Local RPM Packages

[student@servera ~]$ sudo rpm -ivh localinstall zoom_x86_64.rpm
      

Extracting RPM packages

An RPM package is a compressed archive which contains:

Extracting RPM packages

[user@host /tmp]$ rpm2cpio httpd-2.4.51-7.el9_0.x86_64.rpm | cpio -idv
./etc/httpd/conf
./etc/httpd/conf.d/autoindex.conf
./etc/httpd/conf.d/userdir.conf
./etc/httpd/conf.d/welcome.conf
...output omitted...
      

Guided Exercise

Explain and Investigate RPM Software Packages

Install and Update Software Packages with DNF

Manage Software Packages with DNF

Find Software with DNF

[student@servera ~]$ dnf list 'http*'
Available Packages
http-parser.i686              2.9.4-6.el9   rhel-9.0-for-x86_64
http-parser.x86_64            2.9.4-6.el9   rhel-9.0-for-x86_64
httpcomponents-client.noarch  4.5.13-2.el9  rhel-9.0-for-x86_64
httpcomponents-core.noarch    4.4.13-6.el9  rhel-9.0-for-x86_64
httpd.x86_64                  2.4.51-5.el9  rhel-9.0-for-x86_64
httpd-devel.x86_64            2.4.51-5.el9  rhel-9.0-for-x86_64
...output omitted...
      

Find software by keyword

[student@servera ~]$ dnf search all 'web server'
========== Summary & Description Matched: web server ===========
nginx.x86_64 : A high performance web server and reverse proxy
pcp-pmda-weblog.x86_64 : Co-Pilot (PCP) metrics from  logs
================ Summary Matched: web server ===================
libcurl.x86_64 : A library for getting files from web servers
libcurl.i686 : A library for getting files from web servers
============= Description Matched: web server ==================
freeradius.x86_64 : High-performance free RADIUS server
...output omitted...
      

Find Details About a Package

[student@servera ~]$ dnf info httpd
Available Packages
Name         : httpd
Version      : 2.4.51
Release      : 5.el9
Architecture : x86_64
Size         : 1.5 M
Source       : httpd-2.4.51-5.el9.src.rpm
Repository   : rhel-9.0-for-x86_64-appstream-rpms
Summary      : Apache HTTP Server
...output omitted...
      

What Package Provides a File

Install Software with DNF

Remove Software with DNF

Install and Remove Groups of Software with DNF

Install and Remove Groups of Software with DNF

View Transaction History

Manage Package Module Streams with DNF

Introduction to BaseOS and Application Stream

Module Streams

Module Profiles

Manage Modules with DNF

Guided Exercise

Install and Update Software Packages with DNF

Enable DNF Software Repositories

Extra Packages for Enterprise Linux

Enable Red Hat Software Repositories

Add DNF Repositories

RPM Configuration Packages for Local Repositories

Guided Exercise

Enable DNF Software Repositories

Summary

  1. Describe the tools Red Hat provides to entitle machines to product subscriptions, get updates to software packages, and track information about support contracts and subscriptions that the systems use.
  2. Describe the format and naming scheme of RPM packages.
  3. Demonstrate how the rpm command is use to query information about software packages.
  4. Demonstrate how the dnf command is used to install, update, remove, and query software packages.
  5. Describe the benefits of Application Streams in Red Hat Enterprise Linux.

Resources

Graded Lab

Install and Update Software Packages

Thanks for Watching

Thanks for watching. This is the end of the presentation.

Created on 17 February 2025 by Dennis Kibbe. Last modified on 28 June 2025 07:40:00 by DNK.