Repositories, and where packages come from
A package manager can only install what a repository offers, and most package failures are really repository failures. This guide reads the source files on both families, adds a repository that does not answer to see how each reacts, and holds a package back from upgrades.
Operations Deployment Guide 12 of 38 Beginner
- PlatformsUbuntu 26.04 LTS + AlmaLinux 10.2
- LVM2.03.31 (Ubuntu) / 2.03.36 (AlmaLinux)
- nftables1.1.6 (Ubuntu) / 1.1.5 (AlmaLinux)
- TimeAbout 16 min
Ubuntu 26.04 uses the deb822 .sources format, and this host has both that and one old-style .list file live at once. RHEL 10 uses .repo ini files in /etc/yum.repos.d/. The RHEL repositories in this lab are local (file:///var/www/html/rhel10/), not network mirrors.
- Firewallufw 0.36.2 enabled but reporting inactive / firewalld active
- Network confignetplan + systemd-networkd / NetworkManager 1.56.0
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LFCS-A01 | 192.168.0.70 | Ubuntu 26.04 LTS | Primary host - most guides run only here | 2 Core | 4 GB | 50 GB |
| LFCS-C01 | 192.168.0.72 | AlmaLinux 10.2 | The other distribution - dnf, firewalld and NetworkManager | 2 Core | 4 GB | 50 GB |
This guide includes
Use this because a package manager can only install what a repository offers. This matters because the package list is a downloaded copy - a stale cache is why an install fails for a package that plainly exists.
- finding where the sources are written down on each family, and reading one repository in full
- seeing the metadata cache go stale, and refreshing it
- adding a repository that does not answer, and reading the failure
- holding a package back from upgrades
- asking what is waiting to be upgraded, without upgrading it
Before you start
- guide 11 - the tools this page configures.
-
Where the sources are written down
-
One repository, in full
-
The metadata cache, and why it goes stale
-
Adding a repository that does not answer
-
Holding a package back
-
What is waiting to be upgraded