Missing packages in repository

Hello,
I have local repository server where I have all repository packages downloaded, then I have other servers taking packages from that repository.
Problem is that dnf on the servers see less packages than actually located on that repository server - in repository folders.
For example I have this file on repository server:
http://myreposerver.com/8/powertools/Packages/a/ant-contrib-1.0-0.32.b3.module%2Bel8.3.0%2B74%2B855e3f5d.noarch.rpm

but dnf can’t see it:
$ dnf list --available|grep ^ant

but can see other packages from powertools repositories:
$ dnf list --available|grep -i powertools|wc -l
1629

$ dnf repolist -v
Repo-id : my-powertools
Repo-name : Rocky Linux 8 - Powertools
Repo-revision : 8.6
Repo-distro-tags : [cpe:/o:rocky:rocky:8]: , , 8, L, R, c, i, k, n, o, u, x, y
Repo-updated : Wed 22 Jun 2022 06:01:30 PM UTC
Repo-pkgs : 2,280
Repo-available-pkgs: 1,675
Repo-size : 7.3 G
Repo-baseurl : http://myreposerver.com/8/powertools/
Repo-expire : 172,800 second(s) (last: Tue 28 Jun 2022 11:01:36 AM UTC)
Repo-filename : /etc/yum.repos.d/my-local-additional.repo

I did this, no luck:
$ dnf clean all

Could that be related to modules? That technology masks packages of disabled streams

I’m not sure, if you can provide some more details about the modules?

I counted all RPM files in powertools folders:
find . -name *.rpm -type f -ls|wc -l
2280

which is also visible by dnf in my first post:

Repo-pkgs : 2,280
Repo-available-pkgs: 1,675

I did some googling and it could be it:
$ dnf module list|grep ant
ant 1.10 [d][e] common [d] Java build tool

But still can’t see any ant packages after I had disabled this masking.
$ dnf module disable ant:1.10

I believe once you do:

dnf module enable javapackages-tools

then all the ant stuff will become available. This package exists in powertools, so either enable powertools permanently, or just apply the appropriate command to only install this package from it. On my install after I did this:

[root@rocky ~]# dnf list ant*
Last metadata expiration check: 1 day, 2:19:33 ago on Mon 27 Jun 2022 12:36:53 CEST.
Installed Packages
ant-junit.noarch                              1.10.5-1.module+el8.3.0+74+855e3f5d                       @powertools
Available Packages
ant-antlr.noarch                              1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-bcel.noarch                        1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-bsf.noarch                         1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-log4j.noarch                       1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-oro.noarch                         1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-regexp.noarch                      1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-resolver.noarch                    1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-apache-xalan2.noarch                      1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-commons-logging.noarch                    1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-commons-net.noarch                        1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-contrib.noarch                            1.0-0.32.b3.module+el8.3.0+74+855e3f5d                    powertools 
ant-contrib-javadoc.noarch                    1.0-0.32.b3.module+el8.3.0+74+855e3f5d                    powertools 
ant-javadoc.noarch                            1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-javamail.noarch                           1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-jdepend.noarch                            1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-jmf.noarch                                1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-jsch.noarch                               1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-manual.noarch                             1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-swing.noarch                              1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-testutil.noarch                           1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
ant-xz.noarch                                 1.10.5-1.module+el8.3.0+74+855e3f5d                       powertools 
anthy-unicode.x86_64                          1.0.0.20201109-10.el8                                     epel       
anthy-unicode-devel.x86_64                    1.0.0.20201109-10.el8                                     epel       
antlr-C++.x86_64                              2.7.7-56.module+el8.3.0+74+855e3f5d                       powertools 
antlr-javadoc.noarch                          2.7.7-56.module+el8.3.0+74+855e3f5d                       powertools 
antlr-manual.noarch                           2.7.7-56.module+el8.3.0+74+855e3f5d                       powertools 
antlr-tool.noarch                             2.7.7-56.module+el8.3.0+74+855e3f5d                       powertools 
1 Like

Perfect many thanks it’s working now!

2 Likes

Lets add one more query approach:

  • We know that our (disabled) repo ‘powertools’ has file ‘ant-contrib-*.rpm’
    Is it in some (disabled or enabled) module?
$ dnf -q --enablerepo=powertools module provides ant-contrib
ant-contrib-1.0-0.32.b3.module_el8.0.0+6004+2fc32706.noarch
Module   : javapackages-tools:201801:8000020191114220855:b07bea58:x86_64
Profiles : 
Repo     : powertools
Summary  : Tools and macros for Java packaging support

We got a ‘yes’ – the name of the module (javapackages-tools).

1 Like