# Configure and Secure SSH ## Dennis Kibbe ### Mesa Community College Note: This slide presentation was created using [Reveal.js](https://revealjs.com/). You can access a transcript of this presentation by pressing S for speaker notes. You can access navigation help by pressing the question mark key. Audio for this presentation is artificially generated. --- # Module Outline 1. Introduction 1. Register Systems for Red Hat Support 1. Quiz 1. Explain and Investigate RPM Software Packages 1. Guided Exercise 1. Install and Update Software Packages with DNF 1. Guided Exercise 1. View Transaction History 1. Software Groups 1. Backport Security Fixes 1. Enable DNF Software Repositories 1. Guided Exercise 1. Key Takeaways 1. Resources 1. Graded Lab Note: --- # Learning Objectives *After completing the work in this module you will be able to:* 1. Describe how to register a Red Hat system to receive support. 1. Use the `rpm` command to investigate software packages. 1. Use the `dnf` command to install, update, and remove software packages. 1. Enable and disable software repositories. Note: --- # Where to Find Software ![FIXME](../images/fixme.png) Note: Linux handles software installation a bit different that Microsoft Windows. Software is installed from software repositories (repos) created for each Linux distribution. --- # Register Systems for Red Hat Support Note: A Red Hat subscription allows you to access Red Hat Support for registered system. --- # Red Hat Subscription Management - **Register** a system to associate it with the Red Hat account. - **Subscribe** a system to entitle it to updates. - **Enable** repositories to provide software packages. - **Review** and track entitlements. Note: Different options exist to register a system with the Red Hat Customer Portal. For example, you can access a graphical interface by using a GNOME application or through the RHEL web console, or you can register your system by using a command-line tool. --- # Quiz ## Register Systems for Red Hat Support Note: Complete this quiz in Canvas. --- # Explain and Investigate RPM Software Packages Note: An RPM package format is used by Red Hat Enterprise Linux, Fedora and OpenSUSE distributions. --- # Software Packages and RPM Note: >>> # Package Name Note: >>> # Upstream Version Note: >>> # Red Hat Release Number Note: --- # Architecture Note: >>> # Find the Version Number of a Package ``` [student@workstation ~]$ rpm -q dnf dnf-4.10.0-4.el9.noarch ``` Note: --- # Install a Local RPM Package ``` [root@workstation ~]# rpm -ivh podman-4.0.0-6.el9.x86_64.rpm ``` Note: --- # Guided Exercise ## Explain and Investigate RPM Software Packages In this exercise, you gather information about a package from a third party, extract files from it for inspection, and then install it on a server. Note: --- # Install and Update Software Packages with DNF Note: Linux handles software installation differently from Windows. When a Linux distribution is first installed it includes extra software packages to make a fully functioning system when the system first boots. These packages include hardware drivers, a web browser, a fully functioning suite of office programs and much else. Addition psoftware packages are installed from a dedicated software repository for that distribution. --- # Find Software with DNF ``` [student@servera ~]$ dnf search all 'web server' nginx.x86_64 : A high performance web server and reverse proxy server pcp-pmda-weblog.x86_64 : Performance Co-Pilot (PCP) metrics from web server logs libcurl.x86_64 : A library for getting files from web servers libcurl.i686 : A library for getting files from web servers ...output omitted.. Note: --- # Install and Remove Software with DNF Note: --- # Install a Software Package ![screenshot of software installation](../images/dnf_install.png) Note: --- # Remove an Installed Package ![Screenshot of removing a package](../images/dnf_remove.png) Note: --- # View Transaction History ![Screenshot of /var/log/dnf.log](../images/dnf_log.png) Note: --- # Software Groups Note: In addition to installing individual packages similar packages can be installed as a group. --- # List Software Groups ``` [student@servera ~]$ dnf grouplist Available Environment Groups: Server with GUI Server Minimal Install ...output omitted.. Note: --- # Install a Software Group ![Screenshot of installing a software group](../images/dnf_groupinstall.png) Note: --- # Guided Exercise ## Install and Update Software Packages with DNF Note: --- # Backport Security Fixes To preserve backward comparability Red Hat may backport security fixes to an earlier package version. Note: --- # Software Repositories Note: ![Screenshot of the contents of /etc/yum.repo.d/](../images/dnf_repos.png) --- # Managing Software Repositories Note: The `dnf config-manager` command can enable and disable repositories. --- # Adding the EPEL Repository ``` [root@servera ~]# dnf config-manager --add-repo="https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/" Adding repo from: https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64 ``` Note: --- # Guided Exercise ## Enable DNF Software Repositories In this exercise, you configure your server to get packages from a remote DNF repository, and then update or install a package from that repository. Note: --- # Key Takeaways 1. Red Hat Subscription Management provides tools to entitle machines to product subscriptions, get updates to software packages, and track information about support contracts and subscriptions that the systems use. 1. Software is provided as RPM packages, which make it easy to install, upgrade, and uninstall software on the system. 1. The `rpm` command can query a local database to provide information about the contents of installed packages and to install downloaded package files. 1. The `dnf` utility is a powerful command-line tool to install, update, remove, and query software packages. 1. Red Hat Enterprise Linux uses Application Streams to provide a single repository to host multiple versions of an application’s packages and its dependencies. Note: --- # Resources Note: Here are some resources for the topics covered in this chapter. --- # # Graded Lab ## Install and Update Software Packages ![clipboard](../images/lab_techs.png) Note: --- ![Mesa Community College logo](../images/mcc_logo.png "Mesa Community College") Note: This ends this slide presentation. I hope you found it useful.