🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Center Technician › Linux Basics for Data Center Technicians › Lesson 5
TEC-DATA82-07 · Lesson 5 · 10 clock hours · demo

Package Management and Software Installation

Objective. Students will install, update, query, and remove software packages using apt (Debian/Ubuntu) and dnf (RHEL/AlmaLinux), verify package integrity, and explain the role of repositories in a controlled data center environment.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is a Package Manager?

A package manager is a tool that automates downloading, installing, updating, and removing software on a Linux system. Instead of hunting for installer files manually, you run a single command and the package manager fetches the correct software, checks its authenticity, and resolves any dependencies it needs. In a data center, this consistency is essential: every server must be configured in a known, repeatable state.

Two package managers dominate enterprise Linux:

Both tools perform the same core tasks; the commands differ in syntax.

Repositories: Where Software Comes From

A repository (repo) is a curated, server-hosted collection of software packages. When you run an install command, the package manager contacts the configured repos, downloads the package, and verifies it before installing. Repos can be hosted publicly by the distribution vendor, by third parties, or internally by your organization.

In a production data center, only approved repositories should be enabled. Unapproved repos introduce two serious risks:

1. Security risk — A malicious or compromised package can open backdoors, exfiltrate data, or disrupt services. This is a supply-chain security concern addressed by standards bodies and change-management policies.

2. Stability risk — Packages from unknown sources may conflict with existing software, break dependencies, or introduce untested behavior on production hardware.

Always follow your organization's change-management policy before adding any new repository. Document every change in your lab log and, in production, in the approved ticketing system.

Core apt Commands (Debian/Ubuntu)

| Task | Command |

|---|---|

| Update repo metadata | `sudo apt update` |

| Install a package | `sudo apt install <package>` |

| Remove a package | `sudo apt remove <package>` |

| Search for a package | `apt search <keyword>` |

| List installed packages | `apt list --installed` |

| Upgrade all packages | `sudo apt upgrade` |

Always run `sudo apt update` before installing to make sure you are working with current metadata.

Core dnf Commands (RHEL/AlmaLinux)

| Task | Command |

|---|---|

| Update repo metadata and packages | `sudo dnf check-update` |

| Install a package | `sudo dnf install <package>` |

| Remove a package | `sudo dnf remove <package>` |

| Search for a package | `dnf search <keyword>` |

| List installed packages | `dnf list installed` |

| Upgrade all packages | `sudo dnf upgrade` |

Verifying Package Integrity

Both apt and dnf verify packages using cryptographic signatures before installation. The distribution maintainer signs each package with a GPG key; the package manager checks that signature against a trusted keyring. If the signature does not match, the installation is refused. You can also verify an already-installed package's files using:

Never bypass signature checks. A failed verification is a red flag for a tampered or corrupted package.

Adding Repositories Safely

Ubuntu — PPA (Personal Package Archive): `sudo add-apt-repository ppa:<publisher>/<ppa-name>` followed by `sudo apt update`. Only add PPAs that appear in your organization's approved list.

AlmaLinux — EPEL (Extra Packages for Enterprise Linux): `sudo dnf install epel-release`. EPEL is maintained by the Fedora community and is widely accepted in enterprise environments, but must still be approved by your change-management process before being enabled on production systems.

After adding a repo, document the repo URL, the date, the ticket number, and the reason in your lab log.

Repository Policy and Change Management

Data centers operate under strict change-management policies. Before any software change on a production server, a change request is submitted, reviewed, and approved. Package installation is a change. Adding a repository is a larger change because it affects every future install. Violating repository policy can:

In the lab, treat the mock policy document as you would a real one. Read it, follow it, and answer the worksheet questions thoughtfully.

Safety Notes

This lesson involves only software commands; there is no electrical or physical hazard at the keyboard. However, running commands with `sudo` grants elevated privileges. A mistyped remove command can delete critical system packages. Before pressing Enter:

These habits protect both the system and your career.

Key terms10

Package managerA software tool that automates the installation, update, and removal of software packages and their dependencies on a Linux system.
Repository (repo)A server-hosted, curated collection of software packages that a package manager queries to download and install software.
aptAdvanced Package Tool; the command-line package manager used on Debian-based Linux distributions such as Ubuntu Server.
dnfDandified YUM; the command-line package manager used on Red Hat–based distributions such as AlmaLinux and RHEL.
GPG signatureA cryptographic signature attached to a software package by its maintainer; the package manager verifies this signature to confirm the package has not been tampered with.
EPELExtra Packages for Enterprise Linux; a community repository maintained by the Fedora project that provides additional packages for RHEL-compatible distributions.
Supply-chain attackA security attack in which malicious code is introduced through a trusted software distribution channel, such as a compromised package in a repository.
Change managementA formal process requiring that proposed changes to production systems be submitted, reviewed, and approved before implementation, reducing risk of outages or security incidents.
DependencyA separate software package that a program requires in order to run; the package manager automatically identifies and installs dependencies.
Configuration driftThe gradual divergence of a server's actual software state from its documented, approved baseline, often caused by undocumented or unapproved changes.
In class: Side-by-side demonstration: instructor shows the equivalent apt and dnf commands for install, update, remove, search, and list-installed on two projected terminals simultaneously; students follow along on their assigned distro and record the command pairs in a reference table. · Controlled installation lab: students install the 'htop' and 'net-tools' packages, verify installation with apt list --installed or dnf list installed, then remove one package and confirm removal; they also add an additional repository (EPEL on RHEL or a PPA on Ubuntu) and install a package from it, documenting each step. · Repository policy discussion and worksheet: students read a one-page mock data center policy restricting unapproved repositories and answer five questions about why unvetted software is a security and stability risk in production, connecting the policy to real change-management and supply-chain security concepts.
Materials: Lab servers (one Ubuntu, one AlmaLinux per student pair); apt and dnf command reference cards; CompTIA Server+ Study Guide (software management chapter); mock repository-policy document; lab log notebooks.
Check: Instructor checks each server for correct installation/removal state and reviews the repository-policy worksheet. Pass mark: correct install/remove/verify state on both distros and 4 of 5 policy questions answered correctly.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Operating System Installation and Configuration
1. Which command correctly updates the local package metadata on an Ubuntu Server before installing new software?
Server Administration
2. A technician on an AlmaLinux server wants to search for packages related to network monitoring. Which command is correct?
Server Administration
3. After removing a package with `sudo apt remove htop`, a technician wants to confirm it is no longer installed. Which command provides that confirmation?
Security
4. Why do data center policies typically restrict which repositories technicians may enable on production servers?
Server Administration
5. A technician installs a package on an AlmaLinux server and then runs `rpm -V <package>`. What does this command verify?
Operating System Installation and Configuration
6. Which of the following best describes EPEL on a RHEL-based system?
Security
7. A technician notices that two servers that were identically configured six months ago now have different sets of installed packages because one technician installed unapproved tools directly. This is an example of which problem?
Security
8. During a software installation via apt, the package manager warns that the GPG signature cannot be verified. What is the safest response?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.