Local RPM repo not providing packages not included in CentOS 8.2

Issues related to applications and software problems and general support
Post Reply
le_jawa
Posts: 11
Joined: 2012/12/07 19:57:27
Location: Columbus, OH

Local RPM repo not providing packages not included in CentOS 8.2

Post by le_jawa » 2020/07/14 19:54:09

I'm setting up a local repo of CentOS 8.x RPMs (using dnf reposync) on a server on our network, and the 8.2.2004 .rpms are all working fine. However, when I run yum update on a client, and it needs an updated file from 8.1.1911 repo it can't find it. I had thought (read: hoped) that by simply providing the 8.1.1911 branch in my repo that dnf would automatically look in there for its files. Unfortunately, it does not and now I'm back to the proverbial drawing board. I also omitted "--newest-only" from dnf reposync, but that didn't accomplish what I wanted. (But I wasn't terribly surprised by that.)

Here's what my repo structure looks like:

/repos/
----8 (symlink to current release)
----8.1.1911/
--------AppStream/
--------BaseOS/
--------etcetera...
----8.2.2004/
--------AppStream/
--------BaseOS/
--------etcetera...

The baseURL for my client's repo file for BaseOS is, for example:
baseurl=http://repos.local/test/$contentdir/$releasever/BaseOS/

I do not have a separate directory for architecture as our servers are all x86_64. (i.e., the x86_64, ppc64le, aarch64 directories do not exist in my repo. All files that would be found under x86_64 normally are under BaseOS, etc, directly.)

The repos exist, the files are all there... What do I need to do to get dnf to find the older files it needs?

User avatar
TrevorH
Forum Moderator
Posts: 29069
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Local RPM repo not providing packages not included in CentOS 8.2

Post by TrevorH » 2020/07/15 10:16:18

If you're using 8.2 then the 8.1 repos should not be required at all.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

le_jawa
Posts: 11
Joined: 2012/12/07 19:57:27
Location: Columbus, OH

Re: Local RPM repo not providing packages not included in CentOS 8.2

Post by le_jawa » 2020/07/16 21:16:35

Trevor,
Thanks for replying back. I had thought that was the case too, but was perplexed when yum couldn't find some packages. I finally realized my mistake: I had presumed that the -a flag looked at the architecture directory names and only downloaded the architecture specified by that. Once I supplied "noarch" as an additional architecture, about 2500 additional files downloaded and my client was able to patch.

:oops:

Post Reply

Return to “CentOS 8 - General Support”