# Missing packages in repository

**URL:** <https://forums.rockylinux.org/t/missing-packages-in-repository/6440>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 28, 2022, 11:14am UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440 "2022-06-28T11:14:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicco](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nicco](https://forums.rockylinux.org/u/nicco)\
**Post date:** [June 28, 2022, 11:14am UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/1 "2022-06-28T11:14:46Z")

</div>

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](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/](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

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [June 28, 2022, 11:34am UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/2 "2022-06-28T11:34:25Z")

</div>

Could that be related to _modules_? That technology masks packages of _disabled streams_

---

<div class="post-metadata">

**Author:** ![nicco](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nicco](https://forums.rockylinux.org/u/nicco)\
**Post date:** [June 28, 2022, 11:51am UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/3 "2022-06-28T11:51:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nicco](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nicco](https://forums.rockylinux.org/u/nicco)\
**Post date:** [June 28, 2022, 12:13pm UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/4 "2022-06-28T12:13:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [June 28, 2022, 12:55pm UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/5 "2022-06-28T12:55:18Z")

</div>

I believe once you do:

```auto
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:

```auto
[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 

```

---

<div class="post-metadata">

**Author:** ![nicco](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nicco](https://forums.rockylinux.org/u/nicco)\
**Post date:** [June 28, 2022, 2:28pm UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/6 "2022-06-28T14:28:44Z")

</div>

Perfect many thanks it’s working now!

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [June 28, 2022, 6:53pm UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/7 "2022-06-28T18:53:06Z")

</div>

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?

```nohighlight
$ 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).

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:46am UTC](https://forums.rockylinux.org/t/missing-packages-in-repository/6440/8 "2023-08-25T03:46:48Z")

</div>


