Pcornel
Linux · Package Management › RHEL / Rocky / AlmaLinux

Repositories

Cheat sheet · https://pcornel.dk/topic.php?topic=2745

Back to the Topic

Answer

DNF/YUM repositories are defined in .repo files in /etc/yum.repos.d/ with baseurl or metalink, enabled and gpgcheck settings and a gpgkey.

Remember

Keep gpgcheck=1 and import the vendor key. Disable a repo per command with --disablerepo. On RHEL, many repos are managed by subscription-manager — enable them there.

First checks

  • apt policy <pkg> / dnf info <pkg> — installed and candidate versions
  • dpkg -l <pkg> / rpm -q <pkg> — installed package
  • apt-cache depends <pkg> / dnf repoquery --requires <pkg> — dependencies
  • dpkg -S <file> / rpm -qf <file> — package owning a file

Verify in this order

repo file → metadata downloaded → signatures checked → packages available

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2745

Confirmation

Confirm action

Continue?